mirror of
https://github.com/strapi/strapi.git
synced 2025-11-07 05:38:13 +00:00
add warning into the old DateTimePicker
This commit is contained in:
parent
62685bc4e9
commit
47e6cefa32
@ -124,6 +124,14 @@ const DateTimePicker = ({
|
|||||||
}
|
}
|
||||||
}, [value]);
|
}, [value]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
console.warn(
|
||||||
|
`
|
||||||
|
Deprecation warning: Usage of "DateTimePicker" component from the helper-plugin is deprecated and will be removed in the next major release. Instead, use the DateTimePicker from the Design System: import { DateTimePicker } from '@strapi/design-system/DateTimePicker';"
|
||||||
|
`
|
||||||
|
);
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CustomField
|
<CustomField
|
||||||
name={name}
|
name={name}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user