source: src/locales/localization-provider.tsx@ 5d6f37a

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
4import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
5import { LocalizationProvider as MuiLocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
6//
7import { defaultLang } from './config-lang';
8
9// ----------------------------------------------------------------------
10
11type Props = {
12 children: React.ReactNode;
13};
14
15export 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.