From 7c1c24ef1badb746ecbe707d390bec4934940ced Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 12 Jul 2024 12:12:57 -0500 Subject: [PATCH] Replace incongruous buttons in drawer (#4772) * Replace incongruous buttons in drawer * Improve a11y help --- src/view/shell/Drawer.tsx | 58 ++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 34 deletions(-) diff --git a/src/view/shell/Drawer.tsx b/src/view/shell/Drawer.tsx index e858ae2c..4b765962 100644 --- a/src/view/shell/Drawer.tsx +++ b/src/view/shell/Drawer.tsx @@ -9,10 +9,7 @@ import { View, ViewStyle, } from 'react-native' -import { - FontAwesomeIcon, - FontAwesomeIconStyle, -} from '@fortawesome/react-native-fontawesome' +import {FontAwesomeIconStyle} from '@fortawesome/react-native-fontawesome' import {msg, Plural, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {StackActions, useNavigation} from '@react-navigation/native' @@ -37,6 +34,7 @@ import {formatCountShortOnly} from 'view/com/util/numeric/format' import {Text} from 'view/com/util/text/Text' import {UserAvatar} from 'view/com/util/UserAvatar' import {useTheme as useAlfTheme} from '#/alf' +import {Button, ButtonIcon, ButtonText} from '#/components/Button' import { Bell_Filled_Corner0_Rounded as BellFilled, Bell_Stroke2_Corner0_Rounded as Bell, @@ -52,6 +50,7 @@ import { } from '#/components/icons/HomeOpen' import {MagnifyingGlass_Filled_Stroke2_Corner0_Rounded as MagnifyingGlassFilled} from '#/components/icons/MagnifyingGlass' import {MagnifyingGlass2_Stroke2_Corner0_Rounded as MagnifyingGlass} from '#/components/icons/MagnifyingGlass2' +import {Message_Stroke2_Corner0_Rounded as Message} from '#/components/icons/Message' import {SettingsGear2_Stroke2_Corner0_Rounded as Settings} from '#/components/icons/SettingsGear2' import { UserCircle_Filled_Corner0_Rounded as UserCircleFilled, @@ -319,42 +318,33 @@ let DrawerFooter = ({ onPressFeedback: () => void onPressHelp: () => void }): React.ReactNode => { - const theme = useTheme() - const pal = usePalette('default') const {_} = useLingui() return ( - - - + + ) }