From 8661ea1643551ad879515e2c5dbe1f91d3d31cd5 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 19 Jun 2024 19:14:56 -0500 Subject: [PATCH] Owner share dropdown --- src/screens/StarterPack/StarterPackScreen.tsx | 84 ++++++++++++++++--- 1 file changed, 71 insertions(+), 13 deletions(-) diff --git a/src/screens/StarterPack/StarterPackScreen.tsx b/src/screens/StarterPack/StarterPackScreen.tsx index 9193af974c..bfefb8064f 100644 --- a/src/screens/StarterPack/StarterPackScreen.tsx +++ b/src/screens/StarterPack/StarterPackScreen.tsx @@ -30,6 +30,7 @@ import {atoms as a, useBreakpoints, useTheme} from '#/alf' import {Button, ButtonIcon, ButtonText} from '#/components/Button' import {useDialogControl} from '#/components/Dialog' import {ArrowOutOfBox_Stroke2_Corner0_Rounded as ArrowOutOfBox} from '#/components/icons/ArrowOutOfBox' +import {ChevronBottom_Stroke2_Corner0_Rounded as ChevronDown} from '#/components/icons/Chevron' import {CircleInfo_Stroke2_Corner0_Rounded as CircleInfo} from '#/components/icons/CircleInfo' import {DotGrid_Stroke2_Corner0_Rounded as Ellipsis} from '#/components/icons/DotGrid' import {Pencil_Stroke2_Corner0_Rounded as Pencil} from '#/components/icons/Pencil' @@ -133,7 +134,6 @@ function Header({ }) { const {_} = useLingui() const t = useTheme() - const navigation = useNavigation() const {currentAccount} = useSession() const agent = useAgent() const queryClient = useQueryClient() @@ -191,18 +191,10 @@ function Header({ avatarType="starter-pack"> {isOwn ? ( - + ) : ( + )} + + + + { + logEvent('starterPack:share', { + starterPack: starterPack.uri, + shareType: 'link', + }) + shareUrl( + makeStarterPackLink(routeParams.name, routeParams.rkey), + ) + }}> + + Share link + + + + + + Create QR code + + + + + + + + + + ) +}