2022-11-27 16:34:37 +03:00
|
|
|
|
import React from 'react';
|
2022-11-29 22:36:58 +03:00
|
|
|
|
import { Helmet } from 'react-helmet';
|
2024-08-12 15:50:30 +03:00
|
|
|
|
import { Global } from '@emotion/react'
|
2023-04-16 12:18:29 +03:00
|
|
|
|
import { BrowserRouter } from 'react-router-dom';
|
|
|
|
|
import ruLocale from 'dayjs/locale/ru';
|
|
|
|
|
import dayjs from 'dayjs';
|
2024-03-28 18:26:26 +03:00
|
|
|
|
import { ChakraProvider } from '@chakra-ui/react'
|
2022-11-27 16:34:37 +03:00
|
|
|
|
|
2023-04-16 12:18:29 +03:00
|
|
|
|
import { Dashboard } from './dashboard';
|
2024-08-12 15:50:30 +03:00
|
|
|
|
import { globalStyles } from './global.styles';
|
2023-04-16 12:18:29 +03:00
|
|
|
|
|
|
|
|
|
dayjs.locale('ru', ruLocale);
|
2022-11-27 16:34:37 +03:00
|
|
|
|
|
2024-08-12 00:05:30 +03:00
|
|
|
|
const App = ({ store }) => (
|
|
|
|
|
<ChakraProvider>
|
|
|
|
|
<BrowserRouter>
|
|
|
|
|
<Helmet>
|
|
|
|
|
<meta name="viewport" content="width=device-width, user-scalable=no" />
|
|
|
|
|
<title>Журнал</title>
|
|
|
|
|
</Helmet>
|
2024-08-12 15:50:30 +03:00
|
|
|
|
<Global styles={globalStyles} />
|
2024-08-12 00:05:30 +03:00
|
|
|
|
<Dashboard store={store} />
|
|
|
|
|
</BrowserRouter>
|
|
|
|
|
</ChakraProvider>
|
|
|
|
|
)
|
2022-11-27 16:34:37 +03:00
|
|
|
|
|
|
|
|
|
export default App;
|
|
|
|
|
|