Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Oct 6, 2023
1 parent da02bc4 commit e40738b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/sections/dataset/dataset-alerts/DatasetAlerts.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Alert } from '@iqss/dataverse-design-system'
import { DatasetAlert, DatasetAlertMessageKey } from '../../../dataset/domain/models/Dataset'
import { DatasetAlert } from '../../../dataset/domain/models/Dataset'
import { useTranslation } from 'react-i18next'
import styles from './DatasetAlerts.module.scss'
import parse from 'html-react-parser'
Expand All @@ -13,7 +13,7 @@ export function DatasetAlerts({ alerts }: DatasetAlertsProps) {

return (
<div className={styles.container}>
{alerts.map((alert: DatasetAlert, index) => {
{alerts.map((alert: DatasetAlert) => {
const translatedHTML = alert.dynamicFields
? t(`alerts.${alert.message}`, alert.dynamicFields)
: t(`alerts.${alert.message}`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
} from '../../../dataset/domain/models/Dataset'
import { DatasetAlerts } from '../../../sections/dataset/dataset-alerts/DatasetAlerts'
import { WithI18next } from '../../WithI18next'
import { AlertVariant } from '@iqss/dataverse-design-system/dist/components/alert/AlertVariant'

const meta: Meta<typeof DatasetAlerts> = {
title: 'Sections/Dataset Page/DatasetAlerts',
Expand Down

0 comments on commit e40738b

Please sign in to comment.