From 8067883fba5678ec231cfa5f2afd0112a1c0923c Mon Sep 17 00:00:00 2001 From: Tomek Marciniak Date: Sun, 17 Dec 2023 23:20:14 +0100 Subject: [PATCH] feat(wallet): ui revamp dec 2023 2/2 --- packages/features/.ladle/components.tsx | 2 + packages/features/src/about/views/About.tsx | 58 ++++---- .../address-book/components/ContactTile.tsx | 11 +- .../features/src/components/ui/checkbox.tsx | 2 +- .../features/src/components/ui/textarea.tsx | 2 +- .../onboarding/components/WalletInfoForm.tsx | 82 +++++----- .../onboarding/views/MnemonicConfirmation.tsx | 2 +- .../src/onboarding/views/MnemonicInput.tsx | 4 +- .../onboarding/views/MnemonicWritedown.tsx | 4 +- .../features/src/onboarding/views/Start.tsx | 2 +- .../src/onboarding/views/StayConnected.tsx | 35 +++-- .../features/src/receive/views/Receive.tsx | 4 +- .../features/src/settings/views/Settings.tsx | 140 +++++++++--------- 13 files changed, 178 insertions(+), 170 deletions(-) diff --git a/packages/features/.ladle/components.tsx b/packages/features/.ladle/components.tsx index 50d32ea4..1ef80214 100644 --- a/packages/features/.ladle/components.tsx +++ b/packages/features/.ladle/components.tsx @@ -9,6 +9,7 @@ import { import { MemoryRouter } from 'react-router-dom' import { ThemeProvider } from 'next-themes' import { TooltipProvider } from '@/components/ui/tooltip' +import { Toaster } from '@/components/ui/toaster' export const Provider: GlobalProvider = ({ children }) => { const { dispatch } = useLadleContext() @@ -31,6 +32,7 @@ export const Provider: GlobalProvider = ({ children }) => { }} > {children} + diff --git a/packages/features/src/about/views/About.tsx b/packages/features/src/about/views/About.tsx index 6ed466e0..d8adcbb1 100644 --- a/packages/features/src/about/views/About.tsx +++ b/packages/features/src/about/views/About.tsx @@ -24,38 +24,40 @@ export const AboutView = () => { const navigate = useNavigate() return ( -
+
navigate(-1) }} /> - -
- -
Pallad
-
- -
- - {AppMeta.map(({ label, value }) => ( - - ))} - - - - - - +
+ +
+ +
Pallad
+
+ +
+ + {AppMeta.map(({ label, value }) => ( + + ))} + + + + + + +
) diff --git a/packages/features/src/address-book/components/ContactTile.tsx b/packages/features/src/address-book/components/ContactTile.tsx index afcb7869..9bccdfab 100644 --- a/packages/features/src/address-book/components/ContactTile.tsx +++ b/packages/features/src/address-book/components/ContactTile.tsx @@ -1,7 +1,7 @@ import { TrashIcon } from 'lucide-react' import { useNavigate } from 'react-router-dom' -import { Avatar, AvatarFallback } from '@/components/ui/avatar' +import { Badge } from '@/components/ui/badge' import { Button } from '@/components/ui/button' import { Card } from '@/components/ui/card' import { @@ -24,13 +24,10 @@ export const ContactTile = ({ contact, index }: ContactTileProps) => { const removeContact = useAddressBookStore((state) => state.removeContact) return (
- - {contact.name?.[0]} -
@@ -55,7 +52,7 @@ export const ContactTile = ({ contact, index }: ContactTileProps) => {