From 77556f1b8fb52a550bf63729ae4bf6ad7c75ddcb Mon Sep 17 00:00:00 2001 From: Sergio Betanzos Date: Thu, 19 May 2022 13:07:48 +0200 Subject: [PATCH] F #5422: Add translate component to notifications (#2062) --- src/fireedge/src/client/components/Notifier/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fireedge/src/client/components/Notifier/index.js b/src/fireedge/src/client/components/Notifier/index.js index bcc23667c0..ff2f58c3da 100644 --- a/src/fireedge/src/client/components/Notifier/index.js +++ b/src/fireedge/src/client/components/Notifier/index.js @@ -22,6 +22,7 @@ import { IconButton } from '@mui/material' import { Cancel as CloseIcon } from 'iconoir-react' import { useGeneral, useGeneralApi } from 'client/features/General' +import { Translate } from 'client/components/HOC' const CloseButton = ({ handleClick }) => ( @@ -56,7 +57,7 @@ const Notifier = () => { if (displayed.includes(key)) return - enqueueSnackbar(message, { + enqueueSnackbar(, { key, ...options, action: CloseButton({ handleClick: () => closeSnackbar(key) }),