Skip to content

Commit

Permalink
fix PublishDatasetMenu.stories.tsx: add datasetRepository prop
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Jun 25, 2024
1 parent 77f2aed commit d030a59
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
} from '../../../../../tests/component/dataset/domain/models/DatasetMother'
import { PublishDatasetMenu } from '../../../../sections/dataset/dataset-action-buttons/publish-dataset-menu/PublishDatasetMenu'
import { WithLoggedInUser } from '../../../WithLoggedInUser'
import { DatasetMockRepository } from '../../DatasetMockRepository'

const meta: Meta<typeof PublishDatasetMenu> = {
title: 'Sections/Dataset Page/DatasetActionButtons/PublishDatasetMenu',
Expand All @@ -32,6 +33,7 @@ export const PublishingAllowed: Story = {
hasValidTermsOfAccess: true,
isValid: true
})}
datasetRepository={new DatasetMockRepository()}
/>
)
}
Expand All @@ -46,6 +48,7 @@ export const NoValidTermsOfAccess: Story = {
hasValidTermsOfAccess: false,
isValid: true
})}
datasetRepository={new DatasetMockRepository()}
/>
)
}
Expand All @@ -60,6 +63,7 @@ export const DatasetInReview: Story = {
hasValidTermsOfAccess: true,
isValid: true
})}
datasetRepository={new DatasetMockRepository()}
/>
)
}

0 comments on commit d030a59

Please sign in to comment.