mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
parent
5dc1e3a6fd
commit
77556f1b8f
@ -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 }) => (
|
||||
<IconButton onClick={handleClick} component="span">
|
||||
@ -56,7 +57,7 @@ const Notifier = () => {
|
||||
|
||||
if (displayed.includes(key)) return
|
||||
|
||||
enqueueSnackbar(message, {
|
||||
enqueueSnackbar(<Translate word={message} />, {
|
||||
key,
|
||||
...options,
|
||||
action: CloseButton({ handleClick: () => closeSnackbar(key) }),
|
||||
|
Loading…
x
Reference in New Issue
Block a user