From 40989b7b874335eacec100ef85b19772edf1a4a2 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 18 Jan 2023 14:42:08 +0000 Subject: [PATCH] feat: bigger dashboard tabs --- src/components/common/ConnectButton.tsx | 40 +++++++++++++++---- src/components/dashboard/DashboardLayout.tsx | 10 ++--- src/components/dashboard/DashboardSidebar.tsx | 2 +- src/components/ui/Tabs.tsx | 2 +- src/css/tailwind.css | 1 - 5 files changed, 39 insertions(+), 16 deletions(-) diff --git a/src/components/common/ConnectButton.tsx b/src/components/common/ConnectButton.tsx index 6f4ea5fd..2409050c 100644 --- a/src/components/common/ConnectButton.tsx +++ b/src/components/common/ConnectButton.tsx @@ -27,7 +27,20 @@ import { export const ConnectButton: React.FC<{ left?: boolean variant?: "text" | "primary" | "secondary" | "like" | "collect" | "crossbell" -}> = ({ left, variant }) => { + size?: "base" | "sm" +}> = ({ left, variant, size = "sm" }) => { + let avatarSize + let sizeDecrease + switch (size) { + case "base": + avatarSize = 40 + sizeDecrease = "sm" + break + default: + avatarSize = 30 + sizeDecrease = "xs" + } + const [ssrReady, account] = useAccountState(({ ssrReady, computed }) => [ ssrReady, computed.account, @@ -105,7 +118,7 @@ export const ConnectButton: React.FC<{