From ece34385bcb173a6724d6be3204f6bb4dea6f71b Mon Sep 17 00:00:00 2001 From: Dmitrii Pikulin Date: Tue, 22 Feb 2022 13:03:23 +0300 Subject: [PATCH 1/2] Add Coverage settings story --- .../components/Toolbox/Toolbox.stories.tsx | 79 ++++++++++++++++++- 1 file changed, 77 insertions(+), 2 deletions(-) diff --git a/packages/slate-editor/src/components/Toolbox/Toolbox.stories.tsx b/packages/slate-editor/src/components/Toolbox/Toolbox.stories.tsx index 5dfbdb87d..f7dbdf0a9 100644 --- a/packages/slate-editor/src/components/Toolbox/Toolbox.stories.tsx +++ b/packages/slate-editor/src/components/Toolbox/Toolbox.stories.tsx @@ -39,12 +39,12 @@ export function WebBookmark() { const cardLayoutOptions: OptionsGroupOption<'vertical' | 'horizontal'>[] = [ { value: 'vertical', - label: 'Left', + label: 'Certical', icon: (props) => , }, { value: 'horizontal', - label: 'Center', + label: 'Horizontal', icon: (props) => , }, ]; @@ -269,3 +269,78 @@ export function GallerySettings() { ); } + +export function CoverageCard() { + const [cardLayout, setCardLayout] = React.useState< + typeof cardLayoutOptions[number]['value'] | undefined + >('horizontal'); + + const cardLayoutOptions: OptionsGroupOption<'vertical' | 'horizontal'>[] = [ + { + value: 'horizontal', + label: 'Horizontal', + icon: (props) => , + }, + { + value: 'vertical', + label: 'Vertical', + icon: (props) => , + }, + ]; + + return ( +
+ + Coverage card settings + + + + {[ + , + , + ]} + + + + + Show preview image + + + + + + Open in new tab + + + + + + + +
+ ); +} From 20306dbbcc3171eabe3331ba2bc2caf164cbbfb4 Mon Sep 17 00:00:00 2001 From: Dmitrii Pikulin Date: Thu, 24 Feb 2022 17:28:27 +0300 Subject: [PATCH 2/2] Fix typo --- .../slate-editor/src/components/Toolbox/Toolbox.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/slate-editor/src/components/Toolbox/Toolbox.stories.tsx b/packages/slate-editor/src/components/Toolbox/Toolbox.stories.tsx index f7dbdf0a9..47da894ec 100644 --- a/packages/slate-editor/src/components/Toolbox/Toolbox.stories.tsx +++ b/packages/slate-editor/src/components/Toolbox/Toolbox.stories.tsx @@ -39,7 +39,7 @@ export function WebBookmark() { const cardLayoutOptions: OptionsGroupOption<'vertical' | 'horizontal'>[] = [ { value: 'vertical', - label: 'Certical', + label: 'Vertical', icon: (props) => , }, {