+ {alerts.map((alert: DatasetAlert, index) => {
+ const translatedMsg = alert.dynamicFields
+ ? t(`alerts.${alert.message}.alertText`, alert.dynamicFields)
+ : t(`alerts.${alert.message}.alertText`)
+ const translatedHeading = t(`alerts.${alert.message}.heading`)
+ const alertKey = `alert-${index}`
+ return (
+
+ {parse(translatedMsg)}
+
+ )
+ })}
+
+ )
+}
diff --git a/src/stories/dataset/Dataset.stories.tsx b/src/stories/dataset/Dataset.stories.tsx
index a849d94cd..ab3c7e26e 100644
--- a/src/stories/dataset/Dataset.stories.tsx
+++ b/src/stories/dataset/Dataset.stories.tsx
@@ -3,17 +3,18 @@ import { WithI18next } from '../WithI18next'
import { WithLayout } from '../WithLayout'
import { Dataset } from '../../sections/dataset/Dataset'
import { WithAnonymizedView } from './WithAnonymizedView'
+import { WithDatasetPrivateUrl } from './WithDatasetPrivateUrl'
import { FileMockRepository } from '../files/FileMockRepository'
import { WithCitationMetadataBlockInfo } from './WithCitationMetadataBlockInfo'
import { FileMockNoDataRepository } from '../files/FileMockNoDataRepository'
import { WithSettings } from '../WithSettings'
import { WithFilePermissionsDenied } from '../files/file-permission/WithFilePermissionsDenied'
-import { WithLoggedInUser } from '../WithLoggedInUser'
import { WithFilePermissionsGranted } from '../files/file-permission/WithFilePermissionsGranted'
import { WithDataset } from './WithDataset'
import { WithDatasetDraftAsOwner } from './WithDatasetDraftAsOwner'
import { WithDatasetNotFound } from './WithDatasetNotFound'
import { WithDatasetLoading } from './WithDatasetLoading'
+import { WithLoggedInUser } from '../WithLoggedInUser'
const meta: Meta