add warning into the old DateTimePicker

This commit is contained in:
Simone Taeggi 2022-11-10 11:57:34 +01:00
parent 62685bc4e9
commit 47e6cefa32

View File

@ -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}