mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 00:39:49 +00:00
rename the old version of the DateTimePicker in the helper-plugin
This commit is contained in:
parent
8f88335b8a
commit
c9714f938e
@ -1,8 +1,8 @@
|
|||||||
import React, { useEffect } from 'react';
|
import React, { useEffect } from 'react';
|
||||||
import { DateTimePicker as MyDateTimePicker } from '@strapi/design-system';
|
import { DateTimePicker } from '@strapi/design-system';
|
||||||
|
|
||||||
// TODO: remove DateTimePicker component from the helper-plugin in V5
|
// TODO: remove DateTimePicker component from the helper-plugin in V5
|
||||||
export default function DateTimePicker(props) {
|
export default function DateTimePickerLegacy(props) {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
console.log(
|
console.log(
|
||||||
@ -13,5 +13,5 @@ export default function DateTimePicker(props) {
|
|||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return <MyDateTimePicker {...props} />;
|
return <DateTimePicker {...props} />;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user