diff options
Diffstat (limited to 'src/view/com/util/UserBanner.tsx')
-rw-r--r-- | src/view/com/util/UserBanner.tsx | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/view/com/util/UserBanner.tsx b/src/view/com/util/UserBanner.tsx index 06a80d45b..16e05311b 100644 --- a/src/view/com/util/UserBanner.tsx +++ b/src/view/com/util/UserBanner.tsx @@ -25,7 +25,7 @@ export function UserBanner({ onSelectNewBanner, }: { banner?: string | null - onSelectNewBanner?: (img: PickedMedia) => void + onSelectNewBanner?: (img: PickedMedia | null) => void }) { const store = useStores() const pal = usePalette('default') @@ -70,14 +70,13 @@ export function UserBanner({ ) }, }, - // TODO: Remove banner https://github.com/bluesky-social/social-app/issues/122 - // { - // label: 'Remove', - // icon: ['far', 'trash-can'], - // onPress: () => { - // // Remove banner api call - // }, - // }, + { + label: 'Remove', + icon: ['far', 'trash-can'] as IconProp, + onPress: () => { + onSelectNewBanner?.(null) + }, + }, ] const renderSvg = () => ( |