Skip to content

Commit

Permalink
feat(wallet): Rebrand Settings Home Page (#1935)
Browse files Browse the repository at this point in the history
* feat: add new icon

* feat: refine settings view

* feat: remove debris

* feat: hide menu item and rename to reset

* feat: remove isHidden prop

* feat: cleanup

---------

Co-authored-by: JCNoguera <[email protected]>
  • Loading branch information
evavirseda and VmMad authored Aug 22, 2024
1 parent 3caf0cc commit f643955
Show file tree
Hide file tree
Showing 10 changed files with 179 additions and 234 deletions.
23 changes: 23 additions & 0 deletions apps/ui-icons/src/DarkMode.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { SVGProps } from 'react';
export default function SvgDarkMode(props: SVGProps<SVGSVGElement>) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
fill="none"
viewBox="0 0 24 24"
{...props}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M11.2201 6.05022C8.27486 6.43251 6 8.95059 6 12C6 15.3137 8.68629 18 12 18C13.3228 18 14.5452 17.5726 15.5374 16.847C12.3735 16.1744 10 13.3644 10 10C10 8.53557 10.4506 7.17445 11.2201 6.05022ZM4 12C4 7.58172 7.58172 4 12 4C12.7961 4 13.3232 4.54031 13.5017 5.12203C13.6694 5.66858 13.5651 6.31196 13.1586 6.79923C12.4347 7.66686 12 8.78135 12 10C12 12.7614 14.2386 15 17 15C17.5389 15 17.9878 15.3043 18.2148 15.716C18.4516 16.1457 18.4678 16.75 18.0604 17.2224C16.5949 18.9217 14.4228 20 12 20C7.58172 20 4 16.4183 4 12Z"
fill="currentColor"
/>
</svg>
);
}
1 change: 1 addition & 0 deletions apps/ui-icons/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export { default as Close } from './Close';
export { default as Copy } from './Copy';
export { default as Create } from './Create';
export { default as Dash } from './Dash';
export { default as DarkMode } from './DarkMode';
export { default as DataStack } from './DataStack';
export { default as Delete } from './Delete';
export { default as DoubleArrowLeft } from './DoubleArrowLeft';
Expand Down
3 changes: 3 additions & 0 deletions apps/ui-icons/svgs/dark_mode.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 0 additions & 21 deletions apps/wallet/src/ui/app/components/menu/content/MenuLayout.tsx

This file was deleted.

81 changes: 0 additions & 81 deletions apps/wallet/src/ui/app/components/menu/content/MenuListItem.tsx

This file was deleted.

60 changes: 0 additions & 60 deletions apps/wallet/src/ui/app/components/menu/content/MoreOptions.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { useNextMenuUrl, NetworkSelector } from '_components';

import { MenuLayout } from './MenuLayout';
import { useNextMenuUrl, NetworkSelector, Overlay } from '_components';
import { useNavigate } from 'react-router-dom';

export function NetworkSettings() {
const navigate = useNavigate();
const mainMenuUrl = useNextMenuUrl(true, '/');
return (
<MenuLayout title="Network" back={mainMenuUrl}>
<Overlay showModal title="Network" closeOverlay={() => navigate(mainMenuUrl)}>
<NetworkSelector />
</MenuLayout>
</Overlay>
);
}
Loading

0 comments on commit f643955

Please sign in to comment.