Skip to content

Commit

Permalink
feat: 담당한 스터디가 없을 때
Browse files Browse the repository at this point in the history
  • Loading branch information
hamo-o committed Sep 7, 2024
1 parent 13ca2f0 commit cae3796
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/admin/app/students/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use client";

import { Flex } from "@styled-system/jsx";
import { Text } from "@wow-class/ui";
import { studyApi } from "apis/study/studyApi";
import useFetchStudents from "hooks/fetch/useFetchStudents";
import { useAtom } from "jotai";
Expand Down Expand Up @@ -35,7 +36,7 @@ const StudentsPage = () => {
}, [setStudy]);

const student = useFetchStudents(study);
if (!studyList) return null;
if (!studyList) return <Text>담당한 스터디가 없어요.</Text>;

return (
<Flex direction="column" gap="3rem">
Expand Down

0 comments on commit cae3796

Please sign in to comment.