rename the old version of the DateTimePicker in the helper-plugin

This commit is contained in:
Simone Taeggi 2022-12-12 15:16:05 +01:00
parent 8f88335b8a
commit c9714f938e

View File

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