main
Last change
on this file since 5d6f37a was 5d6f37a, checked in by Naum Shapkarovski <naumshapkarovski@…>, 7 weeks ago |
add customer
|
-
Property mode
set to
100644
|
File size:
607 bytes
|
Line | |
---|
1 | 'use client';
|
---|
2 |
|
---|
3 | // @mui
|
---|
4 | import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
|
---|
5 | import { LocalizationProvider as MuiLocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
|
---|
6 | //
|
---|
7 | import { defaultLang } from './config-lang';
|
---|
8 |
|
---|
9 | // ----------------------------------------------------------------------
|
---|
10 |
|
---|
11 | type Props = {
|
---|
12 | children: React.ReactNode;
|
---|
13 | };
|
---|
14 |
|
---|
15 | export default function LocalizationProvider({ children }: Props) {
|
---|
16 | return (
|
---|
17 | <MuiLocalizationProvider dateAdapter={AdapterDateFns} adapterLocale={defaultLang.adapterLocale}>
|
---|
18 | {children}
|
---|
19 | </MuiLocalizationProvider>
|
---|
20 | );
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.