Skip to content

Commit

Permalink
Regular updates 1 4 9 (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueHorn07 authored Sep 27, 2024
1 parent f2eb8b5 commit bda514a
Show file tree
Hide file tree
Showing 6 changed files with 639 additions and 567 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

<p align="center">
<img src="https://img.shields.io/badge/Docker-2CA5E0?style=flat-square&logo=Docker&logoColor=white"/>
<img src="https://img.shields.io/badge/node-18.7-brightgreen">
<img src="https://img.shields.io/badge/NextJS-12.3.7-brightgreen">
<img src="https://img.shields.io/badge/ReactJS-17.0.2-brightgreen">
<img src="https://img.shields.io/badge/node-20-brightgreen">
<img src="https://img.shields.io/badge/NextJS-14.2-brightgreen">
<img src="https://img.shields.io/badge/ReactJS-18.3-brightgreen">
</p>

## About
Expand Down
4 changes: 2 additions & 2 deletions components/notice/notice.card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const NoticeCard: React.FC<NoticeCardProps> = ({ notice, user }) => {

useEffect(() => {
const fetchLikeStatus = async () => {
if (!user) return;
if (!user_id) return;

const status = await PoPoAxios.get(
`/noticeLike/status/${user_id}/${notice_id}`,
Expand All @@ -40,7 +40,7 @@ const NoticeCard: React.FC<NoticeCardProps> = ({ notice, user }) => {

fetchLikeStatus();
fetchLikeCount();
}, [notice, user]);
}, [user_id, notice_id]);

const handleLike = async () => {
if (!user) {
Expand Down
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
Loading

0 comments on commit bda514a

Please sign in to comment.