From eae3465c21a59d000881587fa4e69c07ec24780c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Fri, 16 Aug 2024 09:21:34 +0200 Subject: [PATCH] Restyle sidebar menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/components/sidebar-menu.tsx | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/src/components/sidebar-menu.tsx b/src/components/sidebar-menu.tsx index aecde264f..d5de9b45e 100644 --- a/src/components/sidebar-menu.tsx +++ b/src/components/sidebar-menu.tsx @@ -9,7 +9,7 @@ import { getSettings } from 'soapbox/actions/settings'; import { closeSidebar } from 'soapbox/actions/sidebar'; import { useAccount } from 'soapbox/api/hooks'; import Account from 'soapbox/components/account'; -import { Stack, Divider, HStack, Icon, IconButton, Text } from 'soapbox/components/ui'; +import { Stack, Divider, HStack, Icon, Text } from 'soapbox/components/ui'; import ProfileStats from 'soapbox/features/ui/components/profile-stats'; import { useAppDispatch, useAppSelector, useFeatures, useInstance } from 'soapbox/hooks'; import { makeGetOtherAccounts } from 'soapbox/selectors'; @@ -93,7 +93,6 @@ const SidebarMenu: React.FC = (): JSX.Element | null => { const restrictUnauth = instance.pleroma.metadata.restrict_unauthenticated; const containerRef = React.useRef(null); - const closeButtonRef = React.useRef(null); const [switcher, setSwitcher] = React.useState(false); @@ -171,7 +170,7 @@ const SidebarMenu: React.FC = (): JSX.Element | null => {
{
- -
{account ? ( @@ -439,13 +429,6 @@ const SidebarMenu: React.FC = (): JSX.Element | null => {
- - {/* Dummy element to keep Close Icon visible */} -
);