Skip to content

Commit

Permalink
Set showModal=false on modal stories (#125)
Browse files Browse the repository at this point in the history
* Set showModal=false on modal stories

https://main--600c295ccb36300021e7d82f.chromatic.com/?path=/docs/components-organisms-modal--docs

does not show the documentation for the modals because the modals are opening on component-render, but there's one that can't be closed -- so user can _never_ see the modal documentation page

* set showModal=false on modal-drawer stories as well
  • Loading branch information
moshmage authored Oct 24, 2023
1 parent 182446d commit e83d866
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/organisms/modal-drawer/stories/modal-drawer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
};

export const ModalDrawerComponent = (args: ModalDrawerProps) => {
const [isShowing, setIsShowing] = useState(true);
const [isShowing, setIsShowing] = useState(false);
return (
<div>
{!isShowing && (
Expand Down Expand Up @@ -60,7 +60,7 @@ ModalDrawerComponent.args = {
};

export const ModalDrawerCustomFooterComponent = (args: ModalDrawerProps) => {
const [isShowing, setIsShowing] = useState(true);
const [isShowing, setIsShowing] = useState(false);
return (
<div>
{!isShowing && (
Expand Down
4 changes: 2 additions & 2 deletions src/organisms/modal/stories/modal.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ ModalComponentBase.args = {
title: 'Checkout',
footer: true,
closeValue: 'Close',
isShowing: true,
isShowing: false,
};

export const ModalEditorComponent = (args: ModalProps) => {
const [isShowing, setIsShowing] = useState(true);
const [isShowing, setIsShowing] = useState(false);
return (
<div>
{!isShowing && (
Expand Down

0 comments on commit e83d866

Please sign in to comment.