fix(frontend): update variable name

This commit is contained in:
yassinedorbozgithub 2025-02-04 11:56:31 +01:00
parent 72ffde9d4e
commit 2962540124

View File

@ -19,7 +19,7 @@ export const ConfirmDialogBody = ({
itemsNumber?: number; itemsNumber?: number;
}) => { }) => {
const { t } = useTranslate(); const { t } = useTranslate();
const DialogBodyText = const dialogBodyText =
itemsNumber === 1 itemsNumber === 1
? t("message.item_delete_confirm", { ? t("message.item_delete_confirm", {
"0": mode === "click" ? "" : t("message.selected"), "0": mode === "click" ? "" : t("message.selected"),
@ -34,7 +34,7 @@ export const ConfirmDialogBody = ({
<ErrorIcon sx={{ fontSize: "1.75rem" }} color="error" /> <ErrorIcon sx={{ fontSize: "1.75rem" }} color="error" />
</Grid> </Grid>
<Grid item alignSelf="center"> <Grid item alignSelf="center">
<Typography>{DialogBodyText}</Typography> <Typography>{dialogBodyText}</Typography>
</Grid> </Grid>
</Grid> </Grid>
); );