File size: 932 Bytes
af3ef26
 
04aba1b
af3ef26
6b8fc2c
af3ef26
04aba1b
6b8fc2c
af3ef26
6b8fc2c
af3ef26
04aba1b
6b8fc2c
 
 
 
 
04aba1b
6b8fc2c
af3ef26
 
6b8fc2c
 
 
 
 
04aba1b
6b8fc2c
 
 
 
 
04aba1b
6b8fc2c
 
 
04aba1b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { Divider, Layout, theme } from 'antd';
import React from 'react';
import { useTranslation } from 'react-i18next';
import { Outlet } from 'umi';
import '../locales/config';
import Header from './components/header';
import styles from './index.less';

const { Content } = Layout;

const App: React.FC = () => {
  const { t } = useTranslation();
  const {
    token: { colorBgContainer, borderRadiusLG },
  } = theme.useToken();

  return (
    <Layout className={styles.layout}>

      <Layout>

        <Header></Header>

        <Divider orientationMargin={0} className={styles.divider} />

        <Content

          style={{

            minHeight: 280,

            background: colorBgContainer,

            borderRadius: borderRadiusLG,

            overflow: 'auto',

          }}

        >

          <Outlet />

        </Content>

      </Layout>

    </Layout>
  );
};

export default App;