Skip to content

Commit 63a4dbc

Browse files
author
Sine Jespersen
committed
5396: rename files to card list page
1 parent 62b9482 commit 63a4dbc

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

src/stories/Library/card-list-page/SearchResultPage.stories.tsx renamed to src/stories/Library/card-list-page/CardListPage.stories.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { withDesign } from "storybook-addon-designs";
22
import { ComponentMeta, ComponentStory } from "@storybook/react";
3-
import { SearchResultPage } from "./SearchResultPage";
4-
import { SearchResultPageSkeleton } from "./SearchResultPageSkeleton";
3+
import { CardListPage } from "./CardListPage";
4+
import { CardListPageSkeleton } from "./CardListPageSkeleton";
55

66
export default {
7-
title: "Blocks / Search Result Page",
8-
component: SearchResultPage,
7+
title: "Blocks / Card list Page",
8+
component: CardListPage,
99
decorators: [withDesign],
1010
parameters: {
1111
design: {
@@ -40,16 +40,16 @@ export default {
4040
defaultValue: false,
4141
},
4242
},
43-
} as ComponentMeta<typeof SearchResultPage>;
43+
} as ComponentMeta<typeof CardListPage>;
4444

45-
const Template: ComponentStory<typeof SearchResultPage> = (args) => {
46-
return <SearchResultPage {...args} />;
45+
const Template: ComponentStory<typeof CardListPage> = (args) => {
46+
return <CardListPage {...args} />;
4747
};
4848
export const Item = Template.bind({});
4949

50-
const SkeletonTemplate: ComponentStory<typeof SearchResultPageSkeleton> = (
50+
const SkeletonTemplate: ComponentStory<typeof CardListPageSkeleton> = (
5151
args
5252
) => {
53-
return <SearchResultPageSkeleton {...args} />;
53+
return <CardListPageSkeleton {...args} />;
5454
};
5555
export const SkeletonVersion = SkeletonTemplate.bind({});

src/stories/Library/card-list-page/SearchResultPage.tsx renamed to src/stories/Library/card-list-page/CardListPage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { SearchResultTitle } from "./SearchResultTitle";
55
import { SearchResultZero } from "./SearchResultZero";
66
import FacetLine from "./FacetLine";
77
import FacetLineSelected from "./FacetLineSelectedTerms";
8-
import data from "./SearchResultPageData";
8+
import data from "./CardListPageData";
99

10-
export type SearchResultPageProps = {
10+
export type CardListPageProps = {
1111
title: string;
1212
currentResults: number;
1313
totalResults: number;
@@ -20,14 +20,14 @@ const SearchResultList = data.searchResult.map((item, i) => {
2020
return <CardListItem {...item} tintIndex={i} />;
2121
});
2222

23-
export const SearchResultPage = ({
23+
export const CardListPage = ({
2424
title,
2525
linkName,
2626
linkTotalResults,
2727
currentResults,
2828
totalResults,
2929
zeroResult,
30-
}: SearchResultPageProps) => {
30+
}: CardListPageProps) => {
3131
return (
3232
<div className="card-list-page">
3333
<SearchResultTitle

src/stories/Library/card-list-page/SearchResultPageSkeleton.tsx renamed to src/stories/Library/card-list-page/CardListPageSkeleton.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { SearchResultTitle } from "./SearchResultTitle";
22
import { CardListItemSkeleton } from "../card-list-item/CardListItemSkeleton";
33

4-
export type SearchResultPageSkeletonProps = {
4+
export type CardListPageSkeletonProps = {
55
title: string;
66
currentResults: number;
77
totalResults: number;
@@ -10,9 +10,7 @@ export type SearchResultPageSkeletonProps = {
1010
zeroResult: boolean;
1111
};
1212

13-
export const SearchResultPageSkeleton = ({
14-
title,
15-
}: SearchResultPageSkeletonProps) => {
13+
export const CardListPageSkeleton = ({ title }: CardListPageSkeletonProps) => {
1614
return (
1715
<div className="card-list-page">
1816
<SearchResultTitle

0 commit comments

Comments
 (0)