From 01e79a4fa6980fe189054aa5ee8b9d736c808c18 Mon Sep 17 00:00:00 2001 From: Jack Schedel Date: Tue, 2 Jan 2024 20:54:10 -0500 Subject: [PATCH] new mobile bar polish --- src/assets/icons/BackIcon.tsx | 18 +++++++++++ src/assets/icons/CloneIcon.tsx | 2 +- src/assets/icons/ForwardIcon.tsx | 18 +++++++++++ src/components/Chat/ChatContent/CloneChat.tsx | 5 +--- src/components/MobileBar/MobileBar.tsx | 20 ++++++++----- src/hooks/useSubmit.ts | 10 ++++--- src/types/chat.ts | 30 +++++++++---------- 7 files changed, 71 insertions(+), 32 deletions(-) create mode 100644 src/assets/icons/BackIcon.tsx create mode 100644 src/assets/icons/ForwardIcon.tsx diff --git a/src/assets/icons/BackIcon.tsx b/src/assets/icons/BackIcon.tsx new file mode 100644 index 00000000..5f448a28 --- /dev/null +++ b/src/assets/icons/BackIcon.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +const BackIcon = (props: React.SVGProps) => { + return ( + + + + ); +}; + +export default BackIcon; diff --git a/src/assets/icons/CloneIcon.tsx b/src/assets/icons/CloneIcon.tsx index 565b735f..263f3480 100644 --- a/src/assets/icons/CloneIcon.tsx +++ b/src/assets/icons/CloneIcon.tsx @@ -10,7 +10,7 @@ const CloneIcon = (props: React.SVGProps) => { width='24' {...props} > - + ); }; diff --git a/src/assets/icons/ForwardIcon.tsx b/src/assets/icons/ForwardIcon.tsx new file mode 100644 index 00000000..9aa1f8c1 --- /dev/null +++ b/src/assets/icons/ForwardIcon.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +const ForwardIcon = (props: React.SVGProps) => { + return ( + + + + ); +}; + +export default ForwardIcon; diff --git a/src/components/Chat/ChatContent/CloneChat.tsx b/src/components/Chat/ChatContent/CloneChat.tsx index 41fb775c..eed9c6bf 100644 --- a/src/components/Chat/ChatContent/CloneChat.tsx +++ b/src/components/Chat/ChatContent/CloneChat.tsx @@ -1,5 +1,4 @@ import React, { useState } from 'react'; -import { useTranslation } from 'react-i18next'; import useStore from '@store/store'; import { ChatInterface } from '@type/chat'; @@ -8,8 +7,6 @@ import TickIcon from '@icon/TickIcon'; import CloneIcon from '@icon/CloneIcon'; const CloneChat = React.memo(() => { - const { t } = useTranslation(); - const setChats = useStore((state) => state.setChats); const setCurrentChatIndex = useStore((state) => state.setCurrentChatIndex); @@ -47,7 +44,7 @@ const CloneChat = React.memo(() => { return (

{chatTitle}

- +
+ +