Skip to content

Commit

Permalink
fixed DatePicker old import to new import
Browse files Browse the repository at this point in the history
  • Loading branch information
endre2112 committed Apr 14, 2023
1 parent 2febc4f commit 5182bc2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"react-responsive": "^9.0.0",
"react-router-dom": "6.4.2",
"react-slick": "0.29.0",
"react-social-media-embed": "^2.3.4",
"react-social-media-embed": "^2.3.5",
"typescript": "4.8.4",
"yup": "^0.32.11"
},
Expand Down
13 changes: 9 additions & 4 deletions src/components/Form/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ import React, { FC } from "react";
import { createStyles, withStyles, WithStyles } from "@mui/styles";
import { FormFieldProps } from "./types";
import { useForm } from "./Form";
import { LocalizationProvider, MobileDatePicker, MobileDatePickerProps } from '@mui/x-date-pickers';
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';

import {
LocalizationProvider,
MobileDatePicker,
MobileDatePickerProps,
} from "@mui/lab";
import AdapterDateFns from "@mui/lab/AdapterDateFns";

const styles = () =>
createStyles({
Expand Down Expand Up @@ -37,8 +42,8 @@ const DatePicker: FC<
slotProps={{
textField: {
fullWidth: fullWidth,
helperText: "DD / MM / YYYY"
}
helperText: "DD / MM / YYYY",
},
}}
/>
</LocalizationProvider>
Expand Down

0 comments on commit 5182bc2

Please sign in to comment.