Skip to content

Commit cebe0cc

Browse files
committed
updated warning message
1 parent ff460aa commit cebe0cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ts/components/extensions/notifications/Notification.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const Notification = (props: Props) => {
4242
const { action, setProps, loading_state, ...others } = props;
4343

4444
useEffect(() => {
45-
console.warn('This method of Notifications is deprecated and will be removed in a future major release. Instead, use `NotificationContainer')
45+
console.warn('Notification and NotificationProvider are deprecated and will be removed in a future major release. Instead, use `NotificationContainer')
4646
switch (action) {
4747
case "show":
4848
notifications.show(others);

src/ts/components/extensions/notifications/NotificationProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const NotificationProvider = (props: Props) => {
3535
const { setProps, loading_state, ...others } = props;
3636

3737
useEffect(() => {
38-
console.warn('This method of Notifications is deprecated and will be removed in a future major release. Instead, use `NotificationContainer')
38+
console.warn('Notification and NotificationProvider are deprecated and will be removed in a future major release. Instead, use `NotificationContainer')
3939
}, [])
4040

4141
return (

0 commit comments

Comments
 (0)