From d93f6331c7ee76a55e4d1527ff7ed7dfc1693df2 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 25 Nov 2022 20:04:38 -0600 Subject: [PATCH] Use new icons for Local and Fediverse timelines --- app/assets/icons/COPYING.md | 1 - app/assets/icons/fediverse.svg | 3 --- app/soapbox/components/sidebar-menu.tsx | 7 +++---- app/soapbox/components/sidebar-navigation.tsx | 6 +++--- package.json | 2 +- yarn.lock | 8 ++++---- 6 files changed, 11 insertions(+), 16 deletions(-) delete mode 100644 app/assets/icons/fediverse.svg diff --git a/app/assets/icons/COPYING.md b/app/assets/icons/COPYING.md index 5e84c0b5c..1dcc928d9 100644 --- a/app/assets/icons/COPYING.md +++ b/app/assets/icons/COPYING.md @@ -1,6 +1,5 @@ # Custom icons -- fediverse.svg - Modified from Wikipedia, CC0 - verified.svg - Created by Alex Gleason. CC0 Fediverse logo: https://en.wikipedia.org/wiki/Fediverse#/media/File:Fediverse_logo_proposal.svg diff --git a/app/assets/icons/fediverse.svg b/app/assets/icons/fediverse.svg deleted file mode 100644 index 4cd3cb938..000000000 --- a/app/assets/icons/fediverse.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/app/soapbox/components/sidebar-menu.tsx b/app/soapbox/components/sidebar-menu.tsx index f4186f22b..466e5ca16 100644 --- a/app/soapbox/components/sidebar-menu.tsx +++ b/app/soapbox/components/sidebar-menu.tsx @@ -82,7 +82,6 @@ const SidebarMenu: React.FC = (): JSX.Element | null => { const features = useFeatures(); const getAccount = makeGetAccount(); - const instance = useAppSelector((state) => state.instance); const me = useAppSelector((state) => state.me); const account = useAppSelector((state) => me ? getAccount(state, me) : null); const otherAccounts: ImmutableList = useAppSelector((state) => getOtherAccounts(state)); @@ -222,15 +221,15 @@ const SidebarMenu: React.FC = (): JSX.Element | null => { } + icon={features.federating ? require('@tabler/icons/affiliate.svg') : require('@tabler/icons/world.svg')} + text={features.federating ? : } onClick={onClose} /> {features.federating && ( } onClick={onClose} /> diff --git a/app/soapbox/components/sidebar-navigation.tsx b/app/soapbox/components/sidebar-navigation.tsx index ab1b04241..28d64ed8f 100644 --- a/app/soapbox/components/sidebar-navigation.tsx +++ b/app/soapbox/components/sidebar-navigation.tsx @@ -154,14 +154,14 @@ const SidebarNavigation = () => { <> } + icon={features.federating ? require('@tabler/icons/affiliate.svg') : require('@tabler/icons/world.svg')} + text={features.federating ? : } /> {features.federating && ( } /> )} diff --git a/package.json b/package.json index 6faed0629..d43fc9a6a 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "@sentry/browser": "^7.11.1", "@sentry/react": "^7.11.1", "@sentry/tracing": "^7.11.1", - "@tabler/icons": "^1.111.0", + "@tabler/icons": "^1.113.0", "@tailwindcss/forms": "^0.5.3", "@tailwindcss/line-clamp": "^0.4.2", "@tailwindcss/typography": "^0.5.7", diff --git a/yarn.lock b/yarn.lock index a0ef339e9..433de7543 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2260,10 +2260,10 @@ remark "^13.0.0" unist-util-find-all-after "^3.0.2" -"@tabler/icons@^1.111.0": - version "1.111.0" - resolved "https://registry.yarnpkg.com/@tabler/icons/-/icons-1.111.0.tgz#0538fdd8b5de7072ae60fc5d2f13a9a636d2d0e3" - integrity sha512-TZWYiMT5ccqfHxRE0Qtgvl+sGsMbNkrv7cJMt/tm8TN9l/CDXx/o7d8uAwUN+3PAlSFfF5e/rD1bi1WJs2xNIA== +"@tabler/icons@^1.113.0": + version "1.113.0" + resolved "https://registry.yarnpkg.com/@tabler/icons/-/icons-1.113.0.tgz#aeee5f38284d9996abec1bda46c237ef53cde8d4" + integrity sha512-DjxsvR/0HFHD/utQlM+q3wpl1W2n+jgEZkyfkCkc295rCoAfeXHIBfz/9ROrSHkr205Kq/M8KpQR0Nd4kjwODQ== "@tailwindcss/forms@^0.5.3": version "0.5.3"