From 0a7bb436447d4ee1c8030c40c50ae3a570976080 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Fri, 12 May 2023 10:10:29 -0500 Subject: [PATCH] Replace the moderation hand icon with a better icon --- src/lib/icons.tsx | 26 ++++++++++++++++++++++++++ src/view/shell/Drawer.tsx | 7 ++++--- src/view/shell/desktop/LeftNav.tsx | 7 ++++--- 3 files changed, 34 insertions(+), 6 deletions(-) diff --git a/src/lib/icons.tsx b/src/lib/icons.tsx index 4cb491e4..c5000eaf 100644 --- a/src/lib/icons.tsx +++ b/src/lib/icons.tsx @@ -828,3 +828,29 @@ export function InfoCircleIcon({ ) } + +export function HandIcon({ + style, + size, + strokeWidth = 1.5, +}: { + style?: StyleProp + size?: string | number + strokeWidth?: number +}) { + return ( + + + + + + ) +} diff --git a/src/view/shell/Drawer.tsx b/src/view/shell/Drawer.tsx index 663a1bcf..34a0852d 100644 --- a/src/view/shell/Drawer.tsx +++ b/src/view/shell/Drawer.tsx @@ -28,6 +28,7 @@ import { MagnifyingGlassIcon2Solid, MoonIcon, UserIconSolid, + HandIcon, } from 'lib/icons' import {UserAvatar} from 'view/com/util/UserAvatar' import {Text} from 'view/com/util/text/Text' @@ -228,10 +229,10 @@ export const DrawerContent = observer(() => { /> } label="Moderation" diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index 37e79d34..8901fd81 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -29,6 +29,7 @@ import { CogIcon, CogIconSolid, ComposeIcon2, + HandIcon, } from 'lib/icons' import {getCurrentRoute, isTab, isStateAtTabRoot} from 'lib/routes/helpers' import {NavigationProp} from 'lib/routes/types' @@ -206,10 +207,10 @@ export const DesktopLeftNav = observer(function DesktopLeftNav() { } iconFilled={