Skip to content

Commit

Permalink
fix: missing translations in confirmation modal
Browse files Browse the repository at this point in the history
  • Loading branch information
joonatank committed Nov 6, 2024
1 parent c5b0036 commit 458bb79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/ui/components/application/ApplicationEvent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ function ApplicationEventInner({
<ConfirmationDialog
id="application-event-confirmation"
isOpen
acceptLabel="application:Page1.deleteEvent"
cancelLabel="application:Page1.deleteEventCancel"
acceptLabel={t("application:Page1.deleteEvent")}
cancelLabel={t("application:Page1.deleteEventCancel")}
heading={t("application:Page1.deleteEventHeading")}
content={t("application:Page1.deleteEventContent")}
onAccept={del}
Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/components/ConfirmationDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { Button, Dialog, IconAlertCircleFill, IconInfoCircle } from "hds-react";
import { useTranslation } from "react-i18next";
import { useTranslation } from "next-i18next";

type Props = {
acceptLabel?: string;
Expand Down

0 comments on commit 458bb79

Please sign in to comment.