From f34bc3f17e3b5c34afe9cd496eeff7d711838373 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 19 Jun 2024 19:08:49 -0500 Subject: [PATCH] Style delete --- src/screens/StarterPack/StarterPackScreen.tsx | 29 +++++++++++++++---- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/src/screens/StarterPack/StarterPackScreen.tsx b/src/screens/StarterPack/StarterPackScreen.tsx index b3455be2c1..9193af974c 100644 --- a/src/screens/StarterPack/StarterPackScreen.tsx +++ b/src/screens/StarterPack/StarterPackScreen.tsx @@ -9,6 +9,7 @@ import {NativeStackScreenProps} from '@react-navigation/native-stack' import {useQueryClient} from '@tanstack/react-query' import {logger} from '#/logger' +import {cleanError} from '#/lib/strings/errors' import {useDeleteStarterPackMutation} from '#/state/queries/starter-packs' import {HITSLOP_20} from 'lib/constants' import {makeProfileLink, makeStarterPackLink} from 'lib/routes/links' @@ -255,6 +256,7 @@ function OverflowMenu({ starterPack: AppBskyGraphDefs.StarterPackView routeParams: StarterPackScreeProps['route']['params'] }) { + const t = useTheme() const {_} = useLingui() const {gtMobile} = useBreakpoints() const {currentAccount} = useSession() @@ -400,6 +402,27 @@ function OverflowMenu({ Are you sure you want delete this starter pack? + {deleteError && ( + + + + Unable to delete + + {cleanError(deleteError)} + + + + )}