Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions projects/admin/src/PageContainer/ShopPage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
'use client';

import { useGetScoringList } from 'api/admin';
import * as S from './style';

import { ShopCarousel } from 'admin/components';

const ShopPage = () => (
<S.PageWrapper>
<S.ShopText>상점</S.ShopText>
<ShopCarousel />
</S.PageWrapper>
);
const ShopPage = () => {
const { data } = useGetScoringList();

return (
<S.PageWrapper>
<S.ShopText>상점</S.ShopText>
{data?.length > 0 ? <ShopCarousel /> : <h1>상품이 없습니다...</h1>}
</S.PageWrapper>
);
};

export default ShopPage;
17 changes: 11 additions & 6 deletions projects/client/src/PageContainer/MissionListPage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
'use client';

import { useGetMissionList } from 'api/common';
import * as S from './style';

import { MissionCarousel } from 'client/components';

const MissionListPage = () => (
<S.PageWrapper>
<S.ScoringText>문제</S.ScoringText>
<MissionCarousel />
</S.PageWrapper>
);
const MissionListPage = () => {
const { data } = useGetMissionList();

return (
<S.PageWrapper>
<S.ScoringText>문제</S.ScoringText>
{data?.length > 0 ? <MissionCarousel /> : <h1>문제가 없습니다...</h1>}
</S.PageWrapper>
);
};

export default MissionListPage;