diff --git a/src/stories/account/Account.stories.tsx b/src/stories/account/Account.stories.tsx index b19475721..65081c710 100644 --- a/src/stories/account/Account.stories.tsx +++ b/src/stories/account/Account.stories.tsx @@ -4,6 +4,7 @@ import { WithI18next } from '../WithI18next' import { WithLayout } from '../WithLayout' import { WithLoggedInUser } from '../WithLoggedInUser' import { AccountHelper } from '../../sections/account/AccountHelper' +import { CollectionMockRepository } from '@/stories/collection/CollectionMockRepository' const meta: Meta = { title: 'Pages/Account', @@ -18,5 +19,10 @@ export default meta type Story = StoryObj export const APITokenTab: Story = { - render: () => + render: () => ( + + ) } diff --git a/src/stories/collection/Collection.stories.tsx b/src/stories/collection/Collection.stories.tsx index c56e42f20..f48b6235d 100644 --- a/src/stories/collection/Collection.stories.tsx +++ b/src/stories/collection/Collection.stories.tsx @@ -24,7 +24,7 @@ export const Default: Story = { render: () => ( ( ( ( ( ( { + getById(_id?: string): Promise { return new Promise(() => {}) } create(_collection: CollectionDTO, _hostCollection?: string): Promise { diff --git a/src/stories/collection/CollectionMockRepository.ts b/src/stories/collection/CollectionMockRepository.ts index 9766af900..efb2e116a 100644 --- a/src/stories/collection/CollectionMockRepository.ts +++ b/src/stories/collection/CollectionMockRepository.ts @@ -13,7 +13,7 @@ import { CollectionItemsMother } from '../../../tests/component/collection/domai import { CollectionItemType } from '@/collection/domain/models/CollectionItemType' export class CollectionMockRepository implements CollectionRepository { - getById(_id: string): Promise { + getById(_id?: string): Promise { return new Promise((resolve) => { setTimeout(() => { resolve(CollectionMother.createRealistic()) diff --git a/src/stories/collection/UnpublishedCollectionMockRepository.ts b/src/stories/collection/UnpublishedCollectionMockRepository.ts index c9194f4f7..9bc90dd61 100644 --- a/src/stories/collection/UnpublishedCollectionMockRepository.ts +++ b/src/stories/collection/UnpublishedCollectionMockRepository.ts @@ -4,7 +4,7 @@ import { FakerHelper } from '../../../tests/component/shared/FakerHelper' import { CollectionMockRepository } from '@/stories/collection/CollectionMockRepository' export class UnpublishedCollectionMockRepository extends CollectionMockRepository { - getById(_id: string): Promise { + getById(_id?: string): Promise { return new Promise((resolve) => { setTimeout(() => { resolve(CollectionMother.createUnpublished()) diff --git a/src/stories/collection/collection-items-panel/CollectionCard.stories.tsx b/src/stories/collection/collection-items-panel/CollectionCard.stories.tsx index 05443406e..e50285374 100644 --- a/src/stories/collection/collection-items-panel/CollectionCard.stories.tsx +++ b/src/stories/collection/collection-items-panel/CollectionCard.stories.tsx @@ -15,7 +15,10 @@ type Story = StoryObj export const Default: Story = { render: () => ( - + ) } @@ -24,19 +27,26 @@ export const WithLongDescription: Story = { const collectionPreview = CollectionItemTypePreviewMother.create({ description: FakerHelper.paragraph(20) }) - - return + return ( + + ) } } export const Unpublished: Story = { render: () => ( - + ) } export const WithThumbnail: Story = { render: () => ( - + ) }