Skip to content

Commit

Permalink
hotfix: goupping page 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-dong-su committed Mar 19, 2024
1 parent 247f42e commit e65e38c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
import { useEffect } from 'react';
import { useInView } from 'react-intersection-observer';

import NoMeeting from '../../meeting/components/NoMeeting';

import { useGetGroups } from '@/apis/groups';
import { useTranslation } from '@/app/i18n/client';
import { GroupingCard } from '@/components/Card';
import { Empty } from '@/components/Empty';
import { ItemList } from '@/components/List';
import { useBlockStore } from '@/store/useBlockStore';

Expand All @@ -13,6 +15,7 @@ interface GroupingCardList {
}

export default function GroupingCardList({ lng }: GroupingCardList) {
const { t } = useTranslation('grouping');
const { ref, inView } = useInView();
const { blockGroupIds } = useBlockStore();
const { data: groupList, fetchNextPage, hasNextPage } = useGetGroups();
Expand All @@ -28,7 +31,7 @@ export default function GroupingCardList({ lng }: GroupingCardList) {
renderItem={(group) => {
return !blockGroupIds.includes(group.groupId) && <GroupingCard groupingData={group} />;
}}
renderEmpty={() => <Empty lng={lng} ns={'grouping'} message={'noGroup'} />}
renderEmpty={() => <NoMeeting message={t('noGroup')} />}
/>
<div ref={ref} />
</>
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/components/Empty/Empty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface NoMeetingProps {
lng: string;
message: string;
}
export default async function NoMeeting({ lng, ns, message }: NoMeetingProps) {
export default async function Empty({ lng, ns, message }: NoMeetingProps) {
const { t } = await serverTranslation(lng, ns);

return (
Expand Down

0 comments on commit e65e38c

Please sign in to comment.