diff --git a/src/app/(withAuth)/courses/[courseId]/page.tsx b/src/app/(withAuth)/courses/[courseId]/page.tsx index e8976ecd..7333cc20 100644 --- a/src/app/(withAuth)/courses/[courseId]/page.tsx +++ b/src/app/(withAuth)/courses/[courseId]/page.tsx @@ -3,8 +3,6 @@ import { Box, Heading, - OrderedList, - ListItem, VStack, Accordion, AccordionItem, @@ -12,6 +10,13 @@ import { AccordionIcon, AccordionPanel, Select, + Table, + TableContainer, + Thead, + Tbody, + Tr, + Td, + Th, } from '@chakra-ui/react'; import type { NextPage } from 'next'; import NextLink from 'next/link'; @@ -28,6 +33,8 @@ import { getLanguageIdFromSessionStorage, setLanguageIdToSessionStorage } from ' const CoursePage: NextPage<{ params: { courseId: string } }> = ({ params }) => { const [selectedLanguageId, setSelectedLanguageId] = useState(''); + const SPECIFIED_COMPLETION_COUNT = 2; + useEffect(() => { setSelectedLanguageId(getLanguageIdFromSessionStorage()); }, []); @@ -68,15 +75,30 @@ const CoursePage: NextPage<{ params: { courseId: string } }> = ({ params }) => { - - {programIds.map((programId) => ( - - - {programIdToName[programId]} - - - ))} - + + + + + プログラム + 進捗 + + + + {programIds.map((programId) => ( + + + + {programIdToName[programId]} + + + + completedProblemCount / {SPECIFIED_COMPLETION_COUNT} + + + ))} + + +
completedProblemCount / {SPECIFIED_COMPLETION_COUNT}