diff --git a/src/components/chat/ChatInput.tsx b/src/components/chat/ChatInput.tsx index d58d1bc..bf86423 100644 --- a/src/components/chat/ChatInput.tsx +++ b/src/components/chat/ChatInput.tsx @@ -92,7 +92,7 @@ const ChatInput: React.FC = ({ value, onSendPress, onInputChange onKeyPress={(event: KeyboardEvent) => handleKeyPress(event)} onChangeText={handleChange} onContentSizeChange={handleContentSizeChange} - className={`flex-1 rounded text-sm ${isRTL ? 'ml-2.5 text-right' : 'mr-2.5 text-left'}`} + className={`flex-1 rounded text-base ${isRTL ? 'ml-2.5 text-right' : 'mr-2.5 text-left'}`} style={{ color: theme.textColor, outlineWidth: 0, diff --git a/src/components/chat/MessageBubble.tsx b/src/components/chat/MessageBubble.tsx index 0b5b2fb..0837187 100644 --- a/src/components/chat/MessageBubble.tsx +++ b/src/components/chat/MessageBubble.tsx @@ -155,11 +155,11 @@ const markdownStyles = { }, heading5: { flexDirection: 'row', - fontSize: 13, + fontSize: 16, }, heading6: { flexDirection: 'row', - fontSize: 11, + fontSize: 16, }, // Horizontal Rule diff --git a/src/components/menu/NameContainer.tsx b/src/components/menu/NameContainer.tsx index 70267b2..9ca8263 100644 --- a/src/components/menu/NameContainer.tsx +++ b/src/components/menu/NameContainer.tsx @@ -7,7 +7,7 @@ import { useDispatch, useSelector } from 'react-redux' import { useTranslation } from 'react-i18next' import { useRouter } from 'expo-router' import { CloseIcon, LikeIcon, LogoutIcon } from '@/components/svg' -import { useAuth } from '@/hooks' +import { useAuth, useLogout } from '@/hooks' type NameContainerProps = { name: string @@ -24,6 +24,7 @@ const NameContainer: React.FC = ({ name, nameColor, displayN const { t } = useTranslation('common') const router = useRouter() const dispatch = useDispatch() + const doLogout = useLogout() if (nameColor === undefined) { nameColor = theme.textColor @@ -105,10 +106,11 @@ const NameContainer: React.FC = ({ name, nameColor, displayN )} { + onPress={async () => { setIsVisible(false) dispatch(toggleSideMenu(false)) - router.push('/logout') + await doLogout() + router.push('/') }} > diff --git a/src/components/prompts/PromptCard.tsx b/src/components/prompts/PromptCard.tsx index c14cddb..c5a3b98 100644 --- a/src/components/prompts/PromptCard.tsx +++ b/src/components/prompts/PromptCard.tsx @@ -43,7 +43,7 @@ const PromptCard: React.FC = ({ title, subtitle, Icon, onPress, isMiddle > @@ -51,7 +51,7 @@ const PromptCard: React.FC = ({ title, subtitle, Icon, onPress, isMiddle {subtitle} diff --git a/src/services/UserService.ts b/src/services/UserService.ts index 57e3f40..4a49a3e 100644 --- a/src/services/UserService.ts +++ b/src/services/UserService.ts @@ -62,7 +62,8 @@ class UserService { // Checking if the response is OK (status code in the range 200-299) if (!response.ok) { - throw new ApplicationError('Failed to update password') + const error = await response.json() + throw new ApplicationError(error.detail || error.error || error.message || 'Failed to update password') } // Parsing the JSON response diff --git a/src/utils/styles.ts b/src/utils/styles.ts index 277c5f5..3053494 100644 --- a/src/utils/styles.ts +++ b/src/utils/styles.ts @@ -82,6 +82,7 @@ const createThemedStyles = ( color: theme.buttonPrimaryColor, fontWeight: 'bold', fontFamily: 'Inter', + fontSize: 16, }, buttonSecondary: { cursor: 'pointer', @@ -98,6 +99,7 @@ const createThemedStyles = ( color: theme.buttonSecondaryColor, fontWeight: 'bold', fontFamily: 'Inter', + fontSize: 16, }, buttonTextDisabled: { color: theme.textColor,