From 699ec6a1c0dd3507d3938242f68f6fd0dfd4e675 Mon Sep 17 00:00:00 2001 From: Damiano Plebani Date: Tue, 26 Sep 2023 12:07:21 +0200 Subject: [PATCH] Make the buttons contained in `BlockButtons' full width by default --- example/src/pages/FooterWithButton.tsx | 2 -- src/components/layout/BlockButtons.tsx | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/example/src/pages/FooterWithButton.tsx b/example/src/pages/FooterWithButton.tsx index b83d3f5d..4c500489 100644 --- a/example/src/pages/FooterWithButton.tsx +++ b/example/src/pages/FooterWithButton.tsx @@ -24,7 +24,6 @@ export const FooterWithButton = () => ( primary={{ type: "Solid", buttonProps: { - fullWidth: true, color: "primary", accessibilityLabel: "primary button", onPress: constVoid, @@ -35,7 +34,6 @@ export const FooterWithButton = () => ( type: "Outline", buttonProps: { color: "primary", - fullWidth: true, accessibilityLabel: "secondary button", onPress: constVoid, label: "Secondary button" diff --git a/src/components/layout/BlockButtons.tsx b/src/components/layout/BlockButtons.tsx index fdb80e2e..c32e6ad1 100644 --- a/src/components/layout/BlockButtons.tsx +++ b/src/components/layout/BlockButtons.tsx @@ -23,7 +23,7 @@ type CommonProps = Readonly<{ export type BlockButtonProps = { type: "Solid" | "Outline"; - buttonProps: ButtonSolidProps; + buttonProps: Omit; }; /** @@ -125,9 +125,9 @@ export const BlockButtons = (props: Props) => { ) => ( {props.type === "Solid" ? ( - + ) : ( - + )} );