From 9cb35cdd83560640c0b7083d0c14a95bac51a2d8 Mon Sep 17 00:00:00 2001 From: LasseStaus Date: Thu, 21 Dec 2023 14:34:55 +0100 Subject: [PATCH] Move eventList to library instead of blocks DDFFORM-59 --- base.scss | 2 +- .../{Blocks => Library}/event-list/EventList.stories.tsx | 2 +- src/stories/{Blocks => Library}/event-list/EventList.tsx | 2 +- src/stories/{Blocks => Library}/event-list/EventListData.ts | 2 +- src/stories/{Blocks => Library}/event-list/event-list.scss | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename src/stories/{Blocks => Library}/event-list/EventList.stories.tsx (94%) rename src/stories/{Blocks => Library}/event-list/EventList.tsx (88%) rename src/stories/{Blocks => Library}/event-list/EventListData.ts (95%) rename src/stories/{Blocks => Library}/event-list/event-list.scss (100%) diff --git a/base.scss b/base.scss index 8dc15ae5f..745ac758e 100644 --- a/base.scss +++ b/base.scss @@ -97,6 +97,7 @@ @import "./src/stories/Library/article-header/article-header"; @import "./src/stories/Library/event-header/event-header"; @import "./src/stories/Library/event-list-item/event-list-item"; +@import "./src/stories/Library/event-list/event-list"; @import "./src/stories/Library/image-credited/image-credited"; @import "./src/stories/Library/event-description/event-description"; @import "./src/stories/Library/link-with-icon/link-with-icon"; @@ -118,7 +119,6 @@ @import "./src/stories/Blocks/advanced-search/advanced-search"; @import "./src/stories/Blocks/article/article"; @import "./src/stories/Blocks/event-page/event-page"; -@import "./src/stories/Blocks/event-list/event-list"; @import "./src/styles/scss/shared"; @import "./src/styles/scss/internal"; diff --git a/src/stories/Blocks/event-list/EventList.stories.tsx b/src/stories/Library/event-list/EventList.stories.tsx similarity index 94% rename from src/stories/Blocks/event-list/EventList.stories.tsx rename to src/stories/Library/event-list/EventList.stories.tsx index bcd059fc1..9ba8d6693 100644 --- a/src/stories/Blocks/event-list/EventList.stories.tsx +++ b/src/stories/Library/event-list/EventList.stories.tsx @@ -3,7 +3,7 @@ import EventList from "./EventList"; import eventListData from "./EventListData"; export default { - title: "Blocks / Event List", + title: "Library / Event List", component: EventList, parameters: { design: { diff --git a/src/stories/Blocks/event-list/EventList.tsx b/src/stories/Library/event-list/EventList.tsx similarity index 88% rename from src/stories/Blocks/event-list/EventList.tsx rename to src/stories/Library/event-list/EventList.tsx index 453c59f21..d9d87ce9f 100644 --- a/src/stories/Blocks/event-list/EventList.tsx +++ b/src/stories/Library/event-list/EventList.tsx @@ -1,7 +1,7 @@ import { EventListItem, EventListItemProps, -} from "../../Library/event-list-item/EventListItem"; +} from "../event-list-item/EventListItem"; type EventListProps = { events: EventListItemProps[]; diff --git a/src/stories/Blocks/event-list/EventListData.ts b/src/stories/Library/event-list/EventListData.ts similarity index 95% rename from src/stories/Blocks/event-list/EventListData.ts rename to src/stories/Library/event-list/EventListData.ts index 7c08a56e2..12fa6115b 100644 --- a/src/stories/Blocks/event-list/EventListData.ts +++ b/src/stories/Library/event-list/EventListData.ts @@ -1,4 +1,4 @@ -import { EventListItemProps } from "../../Library/event-list-item/EventListItem"; +import { EventListItemProps } from "../event-list-item/EventListItem"; const eventListData: EventListItemProps[] = [ { diff --git a/src/stories/Blocks/event-list/event-list.scss b/src/stories/Library/event-list/event-list.scss similarity index 100% rename from src/stories/Blocks/event-list/event-list.scss rename to src/stories/Library/event-list/event-list.scss