+ {datasetAlerts.map((alert: Alert, index) => {
+ const translatedMsg = alert.dynamicFields
+ ? t(`alerts.${alert.messageKey}.alertText`, alert.dynamicFields)
+ : t(`alerts.${alert.messageKey}.alertText`)
+ const translatedHeading = t(`alerts.${alert.messageKey}.heading`)
+ const alertKey = `alert-${index}`
+ return (
+
+ {parse(translatedMsg)}
+
+ )
+ })}
+
+ )
+}
diff --git a/src/sections/dataset/Dataset.tsx b/src/sections/dataset/Dataset.tsx
index c5444efb3..8095e0ae8 100644
--- a/src/sections/dataset/Dataset.tsx
+++ b/src/sections/dataset/Dataset.tsx
@@ -14,6 +14,8 @@ import { DatasetActionButtons } from './dataset-action-buttons/DatasetActionButt
import { useDataset } from './DatasetContext'
import { useEffect } from 'react'
import { DatasetAlerts } from './dataset-alerts/DatasetAlerts'
+import { useNotImplementedModal } from '../not-implemented/NotImplementedModalContext'
+import { NotImplementedModal } from '../not-implemented/NotImplementedModal'
interface DatasetProps {
fileRepository: FileRepository
@@ -23,6 +25,7 @@ export function Dataset({ fileRepository }: DatasetProps) {
const { setIsLoading } = useLoading()
const { dataset, isLoading } = useDataset()
const { t } = useTranslation('dataset')
+ const { hideModal, isModalOpen } = useNotImplementedModal()
useEffect(() => {
setIsLoading(isLoading)
@@ -34,6 +37,7 @@ export function Dataset({ fileRepository }: DatasetProps) {
return (
<>
+