add arrow to follow dialog button

This commit is contained in:
Samuel Newman
2026-01-09 21:23:34 +02:00
parent aa39150c49
commit 15285671f5
+12 -5
View File
@@ -31,6 +31,7 @@ import {
import {Button, ButtonIcon, ButtonText} from '#/components/Button' import {Button, ButtonIcon, ButtonText} from '#/components/Button'
import * as Dialog from '#/components/Dialog' import * as Dialog from '#/components/Dialog'
import {useInteractionState} from '#/components/hooks/useInteractionState' import {useInteractionState} from '#/components/hooks/useInteractionState'
import {ArrowRight_Stroke2_Corner0_Rounded as ArrowRightIcon} from '#/components/icons/Arrow'
import {MagnifyingGlass_Stroke2_Corner0_Rounded as SearchIcon} from '#/components/icons/MagnifyingGlass' import {MagnifyingGlass_Stroke2_Corner0_Rounded as SearchIcon} from '#/components/icons/MagnifyingGlass'
import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times' import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times'
import {boostInterests, InterestTabs} from '#/components/InterestTabs' import {boostInterests, InterestTabs} from '#/components/InterestTabs'
@@ -59,10 +60,16 @@ type Item =
key: string key: string
} }
export function FollowDialog({guide}: {guide: Follow10ProgressGuide}) { export function FollowDialog({
guide,
showArrow,
}: {
guide: Follow10ProgressGuide
showArrow?: boolean
}) {
const {_} = useLingui() const {_} = useLingui()
const control = Dialog.useDialogControl() const control = Dialog.useDialogControl()
const {gtMobile} = useBreakpoints() const {gtPhone} = useBreakpoints()
const {height: minHeight} = useWindowDimensions() const {height: minHeight} = useWindowDimensions()
return ( return (
@@ -73,12 +80,12 @@ export function FollowDialog({guide}: {guide: Follow10ProgressGuide}) {
control.open() control.open()
logEvent('progressGuide:followDialog:open', {}) logEvent('progressGuide:followDialog:open', {})
}} }}
size={gtMobile ? 'small' : 'large'} size={gtPhone ? 'small' : 'large'}
color="primary" color="primary">
variant="solid">
<ButtonText> <ButtonText>
<Trans>Find people to follow</Trans> <Trans>Find people to follow</Trans>
</ButtonText> </ButtonText>
{showArrow && <ButtonIcon icon={ArrowRightIcon} />}
</Button> </Button>
<Dialog.Outer control={control} nativeOptions={{minHeight}}> <Dialog.Outer control={control} nativeOptions={{minHeight}}>
<Dialog.Handle /> <Dialog.Handle />