aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/ui
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/components/ui')
-rw-r--r--apps/web/components/ui/action-confirming-dialog.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/web/components/ui/action-confirming-dialog.tsx b/apps/web/components/ui/action-confirming-dialog.tsx
index cfd38fc3..e624d287 100644
--- a/apps/web/components/ui/action-confirming-dialog.tsx
+++ b/apps/web/components/ui/action-confirming-dialog.tsx
@@ -8,6 +8,7 @@ import {
DialogTitle,
DialogTrigger,
} from "@/components/ui/dialog";
+import { useTranslation } from "@/lib/i18n/client";
import { Button } from "./button";
@@ -26,6 +27,7 @@ export default function ActionConfirmingDialog({
actionButton: (setDialogOpen: (open: boolean) => void) => React.ReactNode;
children?: React.ReactNode;
}) {
+ const { t } = useTranslation();
const [customIsOpen, setCustomIsOpen] = useState(false);
const [isDialogOpen, setDialogOpen] = [
userIsOpen ?? customIsOpen,
@@ -42,7 +44,7 @@ export default function ActionConfirmingDialog({
<DialogFooter className="sm:justify-end">
<DialogClose asChild>
<Button type="button" variant="secondary">
- Close
+ {t("actions.close")}
</Button>
</DialogClose>
{actionButton(setDialogOpen)}