diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index 1c298f6..54be4d7 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -7,7 +7,7 @@ import { formatTime } from '@/components/shared/business/timeHelpers'; import { useNavigation } from '@react-navigation/native'; import { NativeStackNavigationProp } from '@react-navigation/native-stack'; import { RootStackParamList } from '@/app/RootStackParamList'; -import { VerticalSpacer } from '@/components/shared/Spacers'; +import { HorizontalSpacer, VerticalSpacer } from '@/components/shared/Spacers'; import { TimerPickerModal } from 'react-native-timer-picker'; import Button from '@/components/shared/Button'; import NumberSelector from '@/components/shared/NumberSelector'; @@ -63,14 +63,11 @@ export default function Dashboard() { return ( - {i18n.t('appTitle')} - - - - setShowPreparationTimePicker(true)}> + setShowPreparationTimePicker(true)}> {t('preparation')} + {formatTime(localPreparationTime)} @@ -97,9 +94,10 @@ export default function Dashboard() { }} /> - setShowWorkTimePicker(true)}> + setShowWorkTimePicker(true)}> {t('fight')} + {formatTime(localWorkTime)} @@ -126,9 +124,10 @@ export default function Dashboard() { }} /> - setShowRestTimePicker(true)}> + setShowRestTimePicker(true)}> {t('rest')} + {formatTime(localRestTime)} @@ -155,28 +154,43 @@ export default function Dashboard() { }} /> - + - {t('repetition')} + {t('repetition')} + - {t('totalTime')}: {totalWorkTime} + {t('totalTime')}: {totalWorkTime} -