From 8218ef99c60e66f16deea016007c10f9e8e86d1a Mon Sep 17 00:00:00 2001 From: weronika Date: Wed, 8 May 2024 12:01:37 +0200 Subject: [PATCH] fix styles for inputs in profile for web --- src/screens/ProfileScreen.tsx | 103 ++++++++++++++++++++++++---------- 1 file changed, 72 insertions(+), 31 deletions(-) diff --git a/src/screens/ProfileScreen.tsx b/src/screens/ProfileScreen.tsx index d130a814..3a159500 100644 --- a/src/screens/ProfileScreen.tsx +++ b/src/screens/ProfileScreen.tsx @@ -1,11 +1,19 @@ import { ControlledField } from '@baca/components' +import { isWeb } from '@baca/constants' import { Button, Text, Spacer, Row, Box } from '@baca/design-system' -import { useCallback, useTranslation, useUpdateProfileForm, useScreenOptions } from '@baca/hooks' +import { + useCallback, + useTranslation, + useUpdateProfileForm, + useScreenOptions, + useWeb, +} from '@baca/hooks' import { useRouter } from 'expo-router' export const ProfileScreen = () => { const { t } = useTranslation() const { back } = useRouter() + const { shouldApplyMobileStyles } = useWeb() useScreenOptions({ title: t('navigation.screen_titles.profile'), @@ -21,36 +29,69 @@ export const ProfileScreen = () => { Profile Update your personal details here. - - - + + {t('form.labels.first_name')} + + + + + + {t('form.labels.last_name')} + + + + + + {t('form.labels.last_name')} + + + +