feat(i18n) : add personal languages and compact weapon exports
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { useTranslation } from "@/components/i18n/locale-provider";
|
||||
import type { ComponentProps } from "react";
|
||||
import { Trash2Icon } from "lucide-react";
|
||||
|
||||
@@ -17,17 +18,18 @@ export function DeleteConditionDialog({
|
||||
onConfirm,
|
||||
iconOnly = false,
|
||||
}: DeleteConditionDialogProps) {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<DeleteConfirmationDialog
|
||||
trigger={trigger}
|
||||
triggerTooltip={iconOnly ? "ลบ Condition นี้" : undefined}
|
||||
title="ลบ Condition นี้?"
|
||||
description="ข้อมูลทั้งหมดใน Condition นี้จะถูกลบออก"
|
||||
triggerTooltip={iconOnly ? t("ลบ Condition นี้") : undefined}
|
||||
title={t("ลบ Condition นี้?")}
|
||||
description={t("ข้อมูลทั้งหมดใน Condition นี้จะถูกลบออก")}
|
||||
showSuccessToast
|
||||
onConfirm={onConfirm}
|
||||
>
|
||||
<Trash2Icon data-icon={iconOnly ? undefined : "inline-start"} />
|
||||
<span className={iconOnly ? "sr-only" : undefined}>ลบ Condition นี้</span>
|
||||
<span className={iconOnly ? "sr-only" : undefined}>{t("ลบ Condition นี้")}</span>
|
||||
</DeleteConfirmationDialog>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user