Skip to content

Commit 408ae0d

Browse files
committed
fix: children 누락 에러 해결
1 parent 8fa98c9 commit 408ae0d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/shared/ui/EventCard.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useLocation, useNavigate } from 'react-router-dom';
22
import TertiaryButton from '../../../design-system/ui/buttons/TertiaryButton';
33
import Countdown from '../../../design-system/ui/texts/Countdown';
44
import dateImg from '../../../public/assets/event-manage/details/Date.svg';
5-
import locationImg from '../../../public/assets/event-manage/details/Location.svg'
5+
import locationImg from '../../../public/assets/event-manage/details/Location.svg';
66

77
interface EventCardProps {
88
id: number;
@@ -17,7 +17,18 @@ interface EventCardProps {
1717
children?: React.ReactNode;
1818
}
1919

20-
const EventCard = ({ id, img, eventTitle, dDay, host, eventDate, location, hashtags, onClick }: EventCardProps) => {
20+
const EventCard = ({
21+
id,
22+
img,
23+
eventTitle,
24+
dDay,
25+
host,
26+
eventDate,
27+
location,
28+
hashtags,
29+
onClick,
30+
children,
31+
}: EventCardProps) => {
2132
const navigate = useNavigate();
2233
const { pathname } = useLocation();
2334

0 commit comments

Comments
 (0)