Fix Locale adapter with last version of MUI Date Picker
This commit is contained in:
parent
2e5b5970a9
commit
af61173e9d
|
@ -2,7 +2,7 @@ import {createBrowserRouter, RouterProvider} from "react-router-dom"
|
||||||
import Station from "./Station"
|
import Station from "./Station"
|
||||||
import {createTheme, CssBaseline, ThemeProvider, useMediaQuery} from "@mui/material"
|
import {createTheme, CssBaseline, ThemeProvider, useMediaQuery} from "@mui/material"
|
||||||
import React, {useMemo} from "react"
|
import React, {useMemo} from "react"
|
||||||
import {frFR, LocalizationProvider} from "@mui/x-date-pickers"
|
import {LocalizationProvider} from "@mui/x-date-pickers"
|
||||||
import {AdapterDayjs} from "@mui/x-date-pickers/AdapterDayjs"
|
import {AdapterDayjs} from "@mui/x-date-pickers/AdapterDayjs"
|
||||||
import 'dayjs/locale/fr'
|
import 'dayjs/locale/fr'
|
||||||
import './App.css'
|
import './App.css'
|
||||||
|
@ -58,7 +58,7 @@ function App() {
|
||||||
return <>
|
return <>
|
||||||
<ThemeProvider theme={theme}>
|
<ThemeProvider theme={theme}>
|
||||||
<CssBaseline />
|
<CssBaseline />
|
||||||
<LocalizationProvider dateAdapter={AdapterDayjs} localeText={frFR.components.MuiLocalizationProvider.defaultProps.localeText} adapterLocale="fr">
|
<LocalizationProvider dateAdapter={AdapterDayjs} adapterLocale="fr">
|
||||||
<QueryClientProvider client={queryClient}>
|
<QueryClientProvider client={queryClient}>
|
||||||
<RouterProvider router={router} />
|
<RouterProvider router={router} />
|
||||||
</QueryClientProvider>
|
</QueryClientProvider>
|
||||||
|
|
Loading…
Reference in New Issue