Skip to content

Commit d52f171

Browse files
committed
feat: rm unused code
1 parent 50c0841 commit d52f171

File tree

3 files changed

+2
-97
lines changed

3 files changed

+2
-97
lines changed

Diff for: β€Žsrc/components/GlobalFooter/index.less

-29
This file was deleted.

Diff for: β€Žsrc/components/GlobalFooter/index.tsx

-40
This file was deleted.

Diff for: β€Žsrc/layouts/UserLayout.tsx

+2-28
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,13 @@
11
import SelectLang from '@/components/SelectLang';
2-
import GlobalFooter from '@/components/GlobalFooter';
32
import { ConnectProps, ConnectState } from '@/models/connect';
43
import { connect } from 'dva';
5-
import { Icon } from 'antd';
64
import React from 'react';
75
import DocumentTitle from 'react-document-title';
86
import { formatMessage } from 'umi-plugin-react/locale';
97
import Link from 'umi/link';
108
import logo from '../assets/logo.svg';
119
import styles from './UserLayout.less';
12-
import { MenuDataItem, getPageTitle, getMenuData } from '@ant-design/pro-layout';
13-
14-
const links = [
15-
{
16-
key: 'help',
17-
title: formatMessage({ id: 'layout.user.link.help' }),
18-
href: '',
19-
},
20-
{
21-
key: 'privacy',
22-
title: formatMessage({ id: 'layout.user.link.privacy' }),
23-
href: '',
24-
},
25-
{
26-
key: 'terms',
27-
title: formatMessage({ id: 'layout.user.link.terms' }),
28-
href: '',
29-
},
30-
];
31-
32-
const copyright = (
33-
<>
34-
Copyright <Icon type="copyright" /> 2019 θš‚θšι‡‘ζœδ½“ιͺŒζŠ€ζœ―部出品
35-
</>
36-
);
10+
import { MenuDataItem, getPageTitle, getMenuData, DefaultFooter } from '@ant-design/pro-layout';
3711

3812
export interface UserLayoutProps extends ConnectProps {
3913
breadcrumbNameMap: { [path: string]: MenuDataItem };
@@ -79,7 +53,7 @@ const UserLayout: React.SFC<UserLayoutProps> = props => {
7953
</div>
8054
{children}
8155
</div>
82-
<GlobalFooter links={links} copyright={copyright} />
56+
<DefaultFooter />
8357
</div>
8458
</DocumentTitle>
8559
);

0 commit comments

Comments
Β (0)