|
1 | 1 | import SelectLang from '@/components/SelectLang';
|
2 |
| -import GlobalFooter from '@/components/GlobalFooter'; |
3 | 2 | import { ConnectProps, ConnectState } from '@/models/connect';
|
4 | 3 | import { connect } from 'dva';
|
5 |
| -import { Icon } from 'antd'; |
6 | 4 | import React from 'react';
|
7 | 5 | import DocumentTitle from 'react-document-title';
|
8 | 6 | import { formatMessage } from 'umi-plugin-react/locale';
|
9 | 7 | import Link from 'umi/link';
|
10 | 8 | import logo from '../assets/logo.svg';
|
11 | 9 | 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'; |
37 | 11 |
|
38 | 12 | export interface UserLayoutProps extends ConnectProps {
|
39 | 13 | breadcrumbNameMap: { [path: string]: MenuDataItem };
|
@@ -79,7 +53,7 @@ const UserLayout: React.SFC<UserLayoutProps> = props => {
|
79 | 53 | </div>
|
80 | 54 | {children}
|
81 | 55 | </div>
|
82 |
| - <GlobalFooter links={links} copyright={copyright} /> |
| 56 | + <DefaultFooter /> |
83 | 57 | </div>
|
84 | 58 | </DocumentTitle>
|
85 | 59 | );
|
|
0 commit comments