FormattedMessage rather than intl injection
This commit is contained in:
parent
e1453f672e
commit
f5b9cc839c
@ -1,4 +1,5 @@
|
||||
import _ from 'lodash';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { notify } from '/imports/ui/services/notification';
|
||||
import { layoutSelectInput } from '/imports/ui/components/layout/context';
|
||||
import { PANELS } from '/imports/ui/components/layout/enums';
|
||||
@ -60,7 +61,7 @@ function alert(obj) {
|
||||
'user',
|
||||
null,
|
||||
messageElement(
|
||||
intl.formatMessage(obj.messageId),
|
||||
<FormattedMessage id={obj.messageId} />,
|
||||
'content',
|
||||
),
|
||||
true,
|
||||
|
Loading…
Reference in New Issue
Block a user