Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Sep 23, 2024
1 parent 080b4f2 commit df53089
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/sections/collection/useCollection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getCollectionById } from '../../collection/domain/useCases/getCollectio
export function useCollection(
collectionRepository: CollectionRepository,
collectionId: string,
published: boolean
published?: boolean
) {
const [isLoading, setIsLoading] = useState(true)
const [collection, setCollection] = useState<Collection>()
Expand Down
18 changes: 18 additions & 0 deletions src/stories/collection/Collection.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const Default: Story = {
datasetRepository={new DatasetMockRepository()}
id="collection"
created={false}
published={false}
/>
)
}
Expand All @@ -42,6 +43,7 @@ export const InfiniteScrollingEnabled: Story = {
id="collection"
infiniteScrollEnabled={true}
created={false}
published={false}
/>
)
}
Expand All @@ -53,6 +55,7 @@ export const Loading: Story = {
datasetRepository={new DatasetLoadingMockRepository()}
id="collection"
created={false}
published={false}
/>
)
}
Expand All @@ -64,6 +67,7 @@ export const NoResults: Story = {
datasetRepository={new NoDatasetsMockRepository()}
id="collection"
created={false}
published={false}
/>
)
}
Expand All @@ -76,6 +80,7 @@ export const LoggedIn: Story = {
datasetRepository={new DatasetMockRepository()}
id="collection"
created={false}
published={false}
/>
)
}
Expand All @@ -88,6 +93,19 @@ export const Created: Story = {
datasetRepository={new NoDatasetsMockRepository()}
id="collection"
created={true}
published={false}
/>
)
}
export const Published: Story = {
decorators: [WithLoggedInUser],
render: () => (
<Collection
repository={new CollectionMockRepository()}
datasetRepository={new NoDatasetsMockRepository()}
id="collection"
created={false}
published={true}
/>
)
}

0 comments on commit df53089

Please sign in to comment.