diff --git a/wallets/react-wallet-v2/package.json b/wallets/react-wallet-v2/package.json index 2243801..5d6329f 100644 --- a/wallets/react-wallet-v2/package.json +++ b/wallets/react-wallet-v2/package.json @@ -16,8 +16,8 @@ "next-themes": "0.0.15", "react": "17.0.2", "react-dom": "17.0.2", + "react-iconly": "2.2.5", "ethers": "5.5.4", - "keyvaluestorage": "0.7.1", "valtio": "1.2.11" }, "devDependencies": { diff --git a/wallets/react-wallet-v2/src/components/AccountCard.tsx b/wallets/react-wallet-v2/src/components/AccountCard.tsx index 2d65672..8904d08 100644 --- a/wallets/react-wallet-v2/src/components/AccountCard.tsx +++ b/wallets/react-wallet-v2/src/components/AccountCard.tsx @@ -1,3 +1,40 @@ -export default function AccountCard() { - return null +import { truncate } from '@/utils/HelperUtil' +import { Avatar, Button, Card, Text } from '@nextui-org/react' +import { Paper } from 'react-iconly' + +interface Props { + name: string + logo: string + rgb: string + address: string +} + +export default function AccountCard({ name, logo, rgb, address }: Props) { + return ( + + + +
+ + {name} + + + {truncate(address, 19)} + +
+