From 78e9f4faf1e62468babbd1a4268ab6d8b551f403 Mon Sep 17 00:00:00 2001 From: Peiman Date: Tue, 12 Jul 2022 18:57:35 +0430 Subject: [PATCH] feat: improve ButtonCard style and props --- .../ButtonCard/ButtonCard.stories.tsx | 4 +- src/components/ButtonCard/ButtonCard.tsx | 56 ++++++++++++------- 2 files changed, 39 insertions(+), 21 deletions(-) diff --git a/src/components/ButtonCard/ButtonCard.stories.tsx b/src/components/ButtonCard/ButtonCard.stories.tsx index faf3308..221723b 100644 --- a/src/components/ButtonCard/ButtonCard.stories.tsx +++ b/src/components/ButtonCard/ButtonCard.stories.tsx @@ -13,6 +13,6 @@ const Template: ComponentStory = (args) => { className?: string; onClick?: () => void; direction?: 'left' | 'right'; - headline: string; - subline?: string; + iconDirection?: 'top' | 'middle' | 'bottom'; + icon?: SynthetixIcon; + headline: React.ReactNode; + subline?: React.ReactNode; sublineFirst?: boolean; } export const ButtonCard: React.FC = ({ - direction = 'right', + direction = 'left', + iconDirection = 'top', + icon = 'Link-off', headline, subline, onClick, @@ -24,24 +28,35 @@ export const ButtonCard: React.FC = ({