From 1c715b6ab77ddf4e3750f32403680a14540918f7 Mon Sep 17 00:00:00 2001 From: Kasper Birch Date: Mon, 20 Mar 2023 11:08:36 +0100 Subject: [PATCH] Only export `Disclosure` as default --- src/stories/Blocks/material-page/MaterialPage.tsx | 2 +- src/stories/Library/Modals/modal-facet-browser/FacetBrowser.tsx | 2 +- .../Library/Modals/modal-find-on-shelf/ModalFindOnShelf.tsx | 2 +- src/stories/Library/disclosure/Disclosure.stories.tsx | 2 +- src/stories/Library/disclosure/Disclosure.tsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/stories/Blocks/material-page/MaterialPage.tsx b/src/stories/Blocks/material-page/MaterialPage.tsx index 4e90b8237..add15310b 100644 --- a/src/stories/Blocks/material-page/MaterialPage.tsx +++ b/src/stories/Blocks/material-page/MaterialPage.tsx @@ -1,4 +1,4 @@ -import { Disclosure } from "../../Library/disclosure/Disclosure"; +import Disclosure from "../../Library/disclosure/Disclosure"; import { generateId } from "../../Library/horizontal-term-line/HorizontalTermLine"; import ListDescription, { ListData, diff --git a/src/stories/Library/Modals/modal-facet-browser/FacetBrowser.tsx b/src/stories/Library/Modals/modal-facet-browser/FacetBrowser.tsx index e78faa82c..fb8aeca11 100644 --- a/src/stories/Library/Modals/modal-facet-browser/FacetBrowser.tsx +++ b/src/stories/Library/Modals/modal-facet-browser/FacetBrowser.tsx @@ -1,4 +1,4 @@ -import { Disclosure } from "../../disclosure/Disclosure"; +import Disclosure from "../../disclosure/Disclosure"; import { Button } from "../../Buttons/button/Button"; import Modal from "../Modal"; import facetBrowserDummyData from "./facet-browser-dummy-data"; diff --git a/src/stories/Library/Modals/modal-find-on-shelf/ModalFindOnShelf.tsx b/src/stories/Library/Modals/modal-find-on-shelf/ModalFindOnShelf.tsx index 9b54562ab..c4cee1c84 100644 --- a/src/stories/Library/Modals/modal-find-on-shelf/ModalFindOnShelf.tsx +++ b/src/stories/Library/Modals/modal-find-on-shelf/ModalFindOnShelf.tsx @@ -1,4 +1,4 @@ -import { Disclosure } from "../../disclosure/Disclosure"; +import Disclosure from "../../disclosure/Disclosure"; import ListFindOnShelf from "../../Lists/list-find-on-shelf/ListFindOnShelf"; import Modal from "../Modal"; import { Dropdown } from "../../dropdown/Dropdown"; diff --git a/src/stories/Library/disclosure/Disclosure.stories.tsx b/src/stories/Library/disclosure/Disclosure.stories.tsx index 0faf8bc99..937c0fe36 100644 --- a/src/stories/Library/disclosure/Disclosure.stories.tsx +++ b/src/stories/Library/disclosure/Disclosure.stories.tsx @@ -1,6 +1,6 @@ import { ComponentMeta, ComponentStory } from "@storybook/react"; import { withDesign } from "storybook-addon-designs"; -import { Disclosure, DisclosureProps } from "./Disclosure"; +import Disclosure, { DisclosureProps } from "./Disclosure"; export default { title: "Library / Disclosure", diff --git a/src/stories/Library/disclosure/Disclosure.tsx b/src/stories/Library/disclosure/Disclosure.tsx index fb8ec25bd..4b9067c68 100644 --- a/src/stories/Library/disclosure/Disclosure.tsx +++ b/src/stories/Library/disclosure/Disclosure.tsx @@ -13,7 +13,7 @@ export type DisclosureProps = { headingLevel: HeadingLevelType; }; -export const Disclosure: React.FC = ({ +const Disclosure: React.FC = ({ headline, children, icon,