mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 03:17:11 +00:00
add warning into the old DateTimePicker
This commit is contained in:
parent
62685bc4e9
commit
47e6cefa32
@ -124,6 +124,14 @@ const DateTimePicker = ({
|
||||
}
|
||||
}, [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 (
|
||||
<CustomField
|
||||
name={name}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user