From 44f7ee030a81c17f52cd255580ca648c262b8dfb Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 7 Nov 2024 19:45:06 +0100 Subject: [PATCH] fix(devwallet): layout for pages (#2645) --- .changeset/dirty-dogs-promise.md | 2 + .../dev-wallet/src/App/Layout/SideBar.tsx | 9 +- .../dev-wallet/src/App/layout-mini.css.ts | 5 +- .../apps/dev-wallet/src/App/layout-mini.tsx | 11 +-- .../pages/contacts/Components/ContactForm.tsx | 96 +++++++++++-------- .../src/pages/contacts/contacts.tsx | 9 +- .../src/patterns/SideBarLayout/aside.css.ts | 49 +++++++++- .../SideBarLayout/components/SideBarAside.tsx | 10 +- 8 files changed, 131 insertions(+), 60 deletions(-) create mode 100644 .changeset/dirty-dogs-promise.md diff --git a/.changeset/dirty-dogs-promise.md b/.changeset/dirty-dogs-promise.md new file mode 100644 index 0000000000..a845151cc8 --- /dev/null +++ b/.changeset/dirty-dogs-promise.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/apps/dev-wallet/src/App/Layout/SideBar.tsx b/packages/apps/dev-wallet/src/App/Layout/SideBar.tsx index 190fb819ba..68dae5f4a2 100644 --- a/packages/apps/dev-wallet/src/App/Layout/SideBar.tsx +++ b/packages/apps/dev-wallet/src/App/Layout/SideBar.tsx @@ -29,12 +29,11 @@ import { useLayout, } from '@kadena/kode-ui/patterns'; import { FC } from 'react'; -import { Link, useNavigate } from 'react-router-dom'; +import { Link } from 'react-router-dom'; export const SideBar: FC = () => { const { theme, setTheme } = useTheme(); const { isExpanded } = useLayout(); - const navigate = useNavigate(); const { lockProfile } = useWallet(); const toggleTheme = (): void => { @@ -123,10 +122,6 @@ export const SideBar: FC = () => { } > - navigate('/profile')} - label="Profile" - /> } label="Logout" @@ -140,12 +135,12 @@ export const SideBar: FC = () => { label="Change theme" >