From 9d2b71bf2438e6eb8caedafdca433447dcc1a947 Mon Sep 17 00:00:00 2001 From: Ignacio Date: Wed, 6 Mar 2024 12:04:12 +0800 Subject: [PATCH] feat: improve menu ui --- src/features/core/components/base.tsx | 22 +++++++++++++++++++ .../staking/components/delegation-details.tsx | 21 +++++++++++------- src/features/staking/lib/core/icons.ts | 9 ++++++++ 3 files changed, 44 insertions(+), 8 deletions(-) diff --git a/src/features/core/components/base.tsx b/src/features/core/components/base.tsx index b7f0053..0cfce4b 100644 --- a/src/features/core/components/base.tsx +++ b/src/features/core/components/base.tsx @@ -64,6 +64,28 @@ export const ButtonPill = ({ className, ...props }: ButtonPillProps) => ( /> ); +type ButtonLinkProps = React.DetailedHTMLProps< + React.ButtonHTMLAttributes, + HTMLButtonElement +> & { + variant?: "danger" | "default" | "success"; +}; + +export const ButtonLink = ({ + className, + variant, + ...props +}: ButtonLinkProps) => ( +