diff --git a/client/src/components/Chat/Input/AudioRecorder.tsx b/client/src/components/Chat/Input/AudioRecorder.tsx index dd088ea3c8..1fbb3cc61b 100644 --- a/client/src/components/Chat/Input/AudioRecorder.tsx +++ b/client/src/components/Chat/Input/AudioRecorder.tsx @@ -4,16 +4,19 @@ import { ListeningIcon, Spinner } from '~/components/svg'; import { useLocalize, useSpeechToText } from '~/hooks'; import { useChatFormContext } from '~/Providers'; import { globalAudioId } from '~/common'; +import { cn } from '~/utils'; export default function AudioRecorder({ textAreaRef, methods, ask, + isRTL, disabled, }: { textAreaRef: React.RefObject; methods: ReturnType; ask: (data: { text: string }) => void; + isRTL: boolean; disabled: boolean; }) { const localize = useLocalize(); @@ -77,7 +80,12 @@ export default function AudioRecorder({ - - - {localize('com_nav_send_message')} - - - - ); - }), + forwardRef( + (props: { disabled: boolean; isRTL: boolean }, ref: React.ForwardedRef) => { + const localize = useLocalize(); + return ( + + + + + + + {localize('com_nav_send_message')} + + + + ); + }, + ), ); const SendButton = React.memo( forwardRef((props: SendButtonProps, ref: React.ForwardedRef) => { const data = useWatch({ control: props.control }); - return ; + return ; }), ); diff --git a/client/src/components/Chat/Input/StopButton.tsx b/client/src/components/Chat/Input/StopButton.tsx index 125ca1ea25..28ac9bbff5 100644 --- a/client/src/components/Chat/Input/StopButton.tsx +++ b/client/src/components/Chat/Input/StopButton.tsx @@ -1,6 +1,13 @@ -export default function StopButton({ stop, setShowStopButton }) { +import { cn } from '~/utils'; + +export default function StopButton({ stop, setShowStopButton, isRTL }) { return ( -
+