diff --git a/apps/member/src/hooks/queries/index.ts b/apps/member/src/hooks/queries/index.ts index 1eebb001..7bc15c1c 100644 --- a/apps/member/src/hooks/queries/index.ts +++ b/apps/member/src/hooks/queries/index.ts @@ -7,7 +7,6 @@ export * from './my'; export * from './schedule'; export * from './queryClient'; export * from './useAccusesMutation'; -export * from './useBirthday'; export * from './blog/useBlog'; export * from './blog/useBlogDetail'; export * from './useHire'; diff --git a/apps/member/src/pages/MainPage/components/BirthdaySection.tsx b/apps/member/src/pages/MainPage/components/BirthdaySection.tsx index 8adbabae..386efa71 100644 --- a/apps/member/src/pages/MainPage/components/BirthdaySection.tsx +++ b/apps/member/src/pages/MainPage/components/BirthdaySection.tsx @@ -1,11 +1,12 @@ import Image from '@components/common/Image/Image'; import Section from '@components/common/Section/Section'; -import { useBirthday } from '@hooks/queries'; import { createImageUrl } from '@utils/api'; import { formatMemberName } from '@utils/string'; import dayjs from 'dayjs'; +import { useBirthday } from '../hooks/useBirthday'; + export function BirthdaySection() { const { data } = useBirthday(); @@ -19,7 +20,7 @@ export function BirthdaySection() {

) : ( data.items.map(({ id, ...props }) => ( - + )) )} @@ -27,14 +28,14 @@ export function BirthdaySection() { ); } -interface CardProps { +interface BirthdayCardProps { id: string; name: string; imageUrl: string | null; birth: string; } -const Card = ({ id, name, imageUrl, birth }: CardProps) => { +const BirthdayCard = ({ id, name, imageUrl, birth }: BirthdayCardProps) => { return (