From 364661955a3391311a535b1b63c74fee07b3d223 Mon Sep 17 00:00:00 2001 From: Ilja Date: Tue, 8 Feb 2022 16:07:19 +0200 Subject: [PATCH] Nav menu --- wallets/react-wallet-v2/package.json | 4 +- .../react-wallet-v2/public/accounts-icon.svg | 24 ++++++++++ .../react-wallet-v2/public/settings-icon.svg | 9 ++++ .../public/wallet-connect-logo.svg | 3 ++ .../src/components/AccountCard.tsx | 15 ++++--- .../react-wallet-v2/src/components/Layout.tsx | 44 ++++++++++++++----- .../src/components/Navigation.tsx | 39 ++++++++++++++++ wallets/react-wallet-v2/yarn.lock | 8 ++-- 8 files changed, 123 insertions(+), 23 deletions(-) create mode 100644 wallets/react-wallet-v2/public/accounts-icon.svg create mode 100644 wallets/react-wallet-v2/public/settings-icon.svg create mode 100644 wallets/react-wallet-v2/public/wallet-connect-logo.svg create mode 100644 wallets/react-wallet-v2/src/components/Navigation.tsx diff --git a/wallets/react-wallet-v2/package.json b/wallets/react-wallet-v2/package.json index 885debd..c5bbab4 100644 --- a/wallets/react-wallet-v2/package.json +++ b/wallets/react-wallet-v2/package.json @@ -2,7 +2,7 @@ "name": "react-wallet-v2", "private": true, "scripts": { - "dev": "next dev -p 3100", + "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint" @@ -22,7 +22,7 @@ }, "devDependencies": { "@walletconnect/types": "2.0.0-beta.22", - "@types/node": "17.0.15", + "@types/node": "17.0.16", "@types/react": "17.0.39", "eslint": "8.8.0", "eslint-config-next": "12.0.10", diff --git a/wallets/react-wallet-v2/public/accounts-icon.svg b/wallets/react-wallet-v2/public/accounts-icon.svg new file mode 100644 index 0000000..c159f8f --- /dev/null +++ b/wallets/react-wallet-v2/public/accounts-icon.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wallets/react-wallet-v2/public/settings-icon.svg b/wallets/react-wallet-v2/public/settings-icon.svg new file mode 100644 index 0000000..11874aa --- /dev/null +++ b/wallets/react-wallet-v2/public/settings-icon.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/wallets/react-wallet-v2/public/wallet-connect-logo.svg b/wallets/react-wallet-v2/public/wallet-connect-logo.svg new file mode 100644 index 0000000..897281f --- /dev/null +++ b/wallets/react-wallet-v2/public/wallet-connect-logo.svg @@ -0,0 +1,3 @@ + + + diff --git a/wallets/react-wallet-v2/src/components/AccountCard.tsx b/wallets/react-wallet-v2/src/components/AccountCard.tsx index fca0044..0350aff 100644 --- a/wallets/react-wallet-v2/src/components/AccountCard.tsx +++ b/wallets/react-wallet-v2/src/components/AccountCard.tsx @@ -1,6 +1,5 @@ import { truncate } from '@/utils/HelperUtil' -import { Avatar, Button, Card, Text } from '@nextui-org/react' -import { Paper } from 'react-iconly' +import { Avatar, Card, Text } from '@nextui-org/react' interface Props { name: string @@ -16,14 +15,19 @@ export default function AccountCard({ name, logo, rgb, address }: Props) { borderWeight="light" css={{ borderColor: `rgba(${rgb}, 0.4)`, - boxShadow: `0 0 10px 0 rgba(${rgb}, 0.2)`, + boxShadow: `0 0 10px 0 rgba(${rgb}, 0.15)`, + backgroundColor: `rgba(${rgb}, 0.25)`, marginBottom: '$6', - overflowY: 'hidden', minHeight: '70px' }} >
@@ -34,7 +38,6 @@ export default function AccountCard({ name, logo, rgb, address }: Props) { {truncate(address, 19)}
-