From 66f582d51920176656c2a5616dbd5110700776b8 Mon Sep 17 00:00:00 2001 From: Abhinav Jha Date: Thu, 27 Feb 2020 08:37:30 +0000 Subject: [PATCH] Storybook --- .../editorComponents/form/FormMessage.tsx | 4 +- app/client/src/stories/Button.stories.tsx | 45 +++++++++++++ .../src/stories/FormMessage.stories.tsx | 65 +++++++++++++++++++ .../src/stories/TagListInput.stories.tsx | 31 ++++++--- app/client/src/stories/TextInput.stories.tsx | 32 ++++++--- 5 files changed, 155 insertions(+), 22 deletions(-) create mode 100644 app/client/src/stories/Button.stories.tsx create mode 100644 app/client/src/stories/FormMessage.stories.tsx diff --git a/app/client/src/components/editorComponents/form/FormMessage.tsx b/app/client/src/components/editorComponents/form/FormMessage.tsx index 0020acc8dd..92675fcb02 100644 --- a/app/client/src/components/editorComponents/form/FormMessage.tsx +++ b/app/client/src/components/editorComponents/form/FormMessage.tsx @@ -59,7 +59,7 @@ const MessageContainer = styled.div<{ iconbgcolor: string }>` } `; -const ActionsContainer = styled.div` +export const ActionsContainer = styled.div` display: flex; justify-content: flex-start; align-items: center; @@ -72,7 +72,7 @@ const ActionsContainer = styled.div` } `; -const ActionButton = (props: MessageAction) => { +export const ActionButton = (props: MessageAction) => { if (props.url) { return (