From c53cd0844ba8677261240af7a320b7c61f7a1e25 Mon Sep 17 00:00:00 2001 From: Brian August Nguyen Date: Wed, 26 Jul 2023 18:29:37 -0700 Subject: [PATCH] Added README to BannerBase (#6894) * Added README to BannerBase * Updated README based on comments --- .../BannerBase/BannerBase.constants.tsx | 1 + .../foundation/BannerBase/BannerBase.tsx | 2 - .../Banner/foundation/BannerBase/README.md | 89 +++++++++++++++++++ 3 files changed, 90 insertions(+), 2 deletions(-) create mode 100644 app/component-library/components/Banners/Banner/foundation/BannerBase/README.md diff --git a/app/component-library/components/Banners/Banner/foundation/BannerBase/BannerBase.constants.tsx b/app/component-library/components/Banners/Banner/foundation/BannerBase/BannerBase.constants.tsx index b1ae89b3eaa..75701786a67 100644 --- a/app/component-library/components/Banners/Banner/foundation/BannerBase/BannerBase.constants.tsx +++ b/app/component-library/components/Banners/Banner/foundation/BannerBase/BannerBase.constants.tsx @@ -35,6 +35,7 @@ const SAMPLE_BANNERBASE_STARTACCESSORY = ; const SAMPLE_BANNERBASE_TITLE = 'Sample Banner Title'; const SAMPLE_BANNERBASE_DESCRIPTION = 'Sample Banner Description'; const SAMPLE_BANNERBASE_ACTIONBUTTON_PROPS: ButtonProps = { + variant: ButtonVariants.Secondary, label: 'Action Label', onPress: () => { console.log('clicked'); diff --git a/app/component-library/components/Banners/Banner/foundation/BannerBase/BannerBase.tsx b/app/component-library/components/Banners/Banner/foundation/BannerBase/BannerBase.tsx index ea46b42f796..5001646778f 100644 --- a/app/component-library/components/Banners/Banner/foundation/BannerBase/BannerBase.tsx +++ b/app/component-library/components/Banners/Banner/foundation/BannerBase/BannerBase.tsx @@ -17,7 +17,6 @@ import { BannerBaseProps } from './BannerBase.types'; import { DEFAULT_BANNERBASE_TITLE_TEXTVARIANT, DEFAULT_BANNERBASE_DESCRIPTION_TEXTVARIANT, - DEFAULT_BANNERBASE_ACTIONBUTTON_VARIANT, DEFAULT_BANNERBASE_ACTIONBUTTON_SIZE, DEFAULT_BANNERBASE_CLOSEBUTTON_BUTTONICONVARIANT, DEFAULT_BANNERBASE_CLOSEBUTTON_BUTTONICONSIZE, @@ -60,7 +59,6 @@ const BannerBase: React.FC = ({ {renderDescription()} {actionButtonProps && (