diff options
Diffstat (limited to 'src/view/com/profile/ProfileMenu.tsx')
-rw-r--r-- | src/view/com/profile/ProfileMenu.tsx | 39 |
1 files changed, 13 insertions, 26 deletions
diff --git a/src/view/com/profile/ProfileMenu.tsx b/src/view/com/profile/ProfileMenu.tsx index aaa8a93e6..f01fb5e17 100644 --- a/src/view/com/profile/ProfileMenu.tsx +++ b/src/view/com/profile/ProfileMenu.tsx @@ -1,12 +1,10 @@ import React, {memo} from 'react' -import {TouchableOpacity} from 'react-native' import {AppBskyActorDefs} from '@atproto/api' -import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {useQueryClient} from '@tanstack/react-query' -import {HITSLOP_10} from '#/lib/constants' +import {HITSLOP_20} from '#/lib/constants' import {makeProfileLink} from '#/lib/routes/links' import {shareUrl} from '#/lib/sharing' import {toShareUrl} from '#/lib/strings/url-helpers' @@ -22,8 +20,9 @@ import { import {useSession} from '#/state/session' import {EventStopper} from '#/view/com/util/EventStopper' import * as Toast from '#/view/com/util/Toast' -import {atoms as a, useTheme} from '#/alf' +import {Button, ButtonIcon} from '#/components/Button' import {ArrowOutOfBox_Stroke2_Corner0_Rounded as Share} from '#/components/icons/ArrowOutOfBox' +import {DotGrid_Stroke2_Corner0_Rounded as Ellipsis} from '#/components/icons/DotGrid' import {Flag_Stroke2_Corner0_Rounded as Flag} from '#/components/icons/Flag' import {ListSparkle_Stroke2_Corner0_Rounded as List} from '#/components/icons/ListSparkle' import {Mute_Stroke2_Corner0_Rounded as Mute} from '#/components/icons/Mute' @@ -45,9 +44,6 @@ let ProfileMenu = ({ }): React.ReactNode => { const {_} = useLingui() const {currentAccount, hasSession} = useSession() - const t = useTheme() - // TODO ALF this - const alf = useTheme() const {openModal} = useModalControls() const reportDialogControl = useReportDialogControl() const queryClient = useQueryClient() @@ -175,28 +171,19 @@ let ProfileMenu = ({ <EventStopper onKeyDown={false}> <Menu.Root> <Menu.Trigger label={_(`More options`)}> - {({props, state}) => { + {({props}) => { return ( - <TouchableOpacity + <Button {...props} - hitSlop={HITSLOP_10} testID="profileHeaderDropdownBtn" - style={[ - a.rounded_full, - a.justify_center, - a.align_center, - {width: 36, height: 36}, - alf.atoms.bg_contrast_25, - (state.hovered || state.pressed) && [ - alf.atoms.bg_contrast_50, - ], - ]}> - <FontAwesomeIcon - icon="ellipsis" - size={20} - style={t.atoms.text} - /> - </TouchableOpacity> + label={_(msg`More options`)} + hitSlop={HITSLOP_20} + variant="solid" + color="secondary" + size="small" + shape="round"> + <ButtonIcon icon={Ellipsis} size="sm" /> + </Button> ) }} </Menu.Trigger> |