diff --git a/apps/native/src/features/student/home/components/ProblemSet.tsx b/apps/native/src/features/student/home/components/ProblemSet.tsx index acaf41190..8fdc26bee 100644 --- a/apps/native/src/features/student/home/components/ProblemSet.tsx +++ b/apps/native/src/features/student/home/components/ProblemSet.tsx @@ -32,6 +32,7 @@ interface ProblemItemProps { interface ProblemListProps { group: PublishGroup; + unitTitle: string; index: number; isExpanded: boolean; onToggle: () => void; @@ -101,7 +102,7 @@ const ProblemItem = ({ title, status = 'NONE' }: ProblemItemProps) => { ); }; -const ProblemList = ({ group, index, onToggle, onActionPress }: ProblemListProps) => { +const ProblemList = ({ group, index, onToggle, onActionPress, unitTitle }: ProblemListProps) => { const statusMeta = groupStatusMeta[group.progress]; const handlePress = useCallback(() => { if (!statusMeta.actionable) { @@ -113,10 +114,10 @@ const ProblemList = ({ group, index, onToggle, onActionPress }: ProblemListProps const childProblems = group.childProblems ?? []; return childProblems.map((child, childIndex) => ({ key: `child-${child.id}-${childIndex}`, - title: `연습 문제 ${childIndex + 1}번`, + title: `${index + 1}-${childIndex + 1}번`, status: child.progress ?? 'NONE', })); - }, [group]); + }, [group, index]); const { Icon, color, bgColor } = ProblemStatusIcon[group.problem.progress ?? 'NONE']; @@ -127,12 +128,12 @@ const ProblemList = ({ group, index, onToggle, onActionPress }: ProblemListProps - {`실전 문제 ${index + 1}번`} + {`문제 ${index + 1}번`} - 문제 단원 + {unitTitle} {statusMeta.buttonLabel} @@ -262,6 +263,7 @@ const ProblemSet = ({ publishDetail, selectedDate, onDateChange }: ProblemSetPro handleToggleGroup(key)} onActionPress={handleGroupAction} diff --git a/apps/native/src/navigation/student/components/HomeHeader.tsx b/apps/native/src/navigation/student/components/HomeHeader.tsx index 0444563a3..bc6217968 100644 --- a/apps/native/src/navigation/student/components/HomeHeader.tsx +++ b/apps/native/src/navigation/student/components/HomeHeader.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Text, View } from 'react-native'; +import { View } from 'react-native'; import { useNavigation } from '@react-navigation/native'; import { NativeStackNavigationProp } from '@react-navigation/native-stack'; import { AlertBellButtonIcon } from '@components/system/icons'; @@ -8,8 +8,7 @@ import { AnimatedPressable, Container } from '@components/common'; import { useGetNotificationCount } from '@/apis/controller/student/notification'; import { useGetNoticeCount } from '@/apis/controller/student/notice'; import { Bell } from 'lucide-react-native'; -import { colors } from '@theme/tokens'; -import { getGrade, getName } from '@utils'; + type RootNav = NativeStackNavigationProp; @@ -23,11 +22,7 @@ const HomeHeader = () => { return ( - - - 안녕하세요, {getName()} 학생! - 포인터가 보낸 학습 코멘트가 도착했어요. - + navigation.navigate('Notifications')} className='h-[48px] w-[48px] items-center justify-center gap-[10px] rounded-[8px] px-[3px] py-[9px]'>