|
|
@ -49,8 +49,8 @@ class Footer extends React.Component<WrappedComponentProps> { |
|
|
|
getColumns() { |
|
|
|
const { intl } = this.props; |
|
|
|
const isZhCN = intl.locale === 'zh-CN'; |
|
|
|
return [ |
|
|
|
{ |
|
|
|
|
|
|
|
const col1 = { |
|
|
|
title: <FormattedMessage id="app.footer.resources" />, |
|
|
|
items: [ |
|
|
|
{ |
|
|
@ -131,8 +131,9 @@ class Footer extends React.Component<WrappedComponentProps> { |
|
|
|
url: 'https://ant-design.gitee.io/', |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
}; |
|
|
|
|
|
|
|
const col2 = { |
|
|
|
title: <FormattedMessage id="app.footer.community" />, |
|
|
|
items: [ |
|
|
|
{ |
|
|
@ -172,7 +173,11 @@ class Footer extends React.Component<WrappedComponentProps> { |
|
|
|
url: 'https://seeconf.antfin.com/', |
|
|
|
openExternal: true, |
|
|
|
}, |
|
|
|
isZhCN && { |
|
|
|
], |
|
|
|
}; |
|
|
|
|
|
|
|
if (isZhCN) { |
|
|
|
col2.items.push({ |
|
|
|
icon: <UsergroupAddOutlined />, |
|
|
|
title: <FormattedMessage id="app.footer.work_with_us" />, |
|
|
|
url: getLocalizedPathname('/docs/resources', isZhCN, { |
|
|
@ -180,10 +185,10 @@ class Footer extends React.Component<WrappedComponentProps> { |
|
|
|
enUS: 'JoinUs', |
|
|
|
}), |
|
|
|
LinkComponent: Link, |
|
|
|
}, |
|
|
|
].filter(n => n), |
|
|
|
}, |
|
|
|
{ |
|
|
|
} as any); |
|
|
|
} |
|
|
|
|
|
|
|
const col3 = { |
|
|
|
title: <FormattedMessage id="app.footer.help" />, |
|
|
|
items: [ |
|
|
|
{ |
|
|
@ -247,8 +252,9 @@ class Footer extends React.Component<WrappedComponentProps> { |
|
|
|
openExternal: true, |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
}; |
|
|
|
|
|
|
|
const col4 = { |
|
|
|
icon: ( |
|
|
|
<img |
|
|
|
src="https://gw.alipayobjects.com/zos/rmsportal/nBVXkrFdWHxbZlmMbsaH.svg" |
|
|
@ -335,8 +341,9 @@ class Footer extends React.Component<WrappedComponentProps> { |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
]; |
|
|
|
}; |
|
|
|
|
|
|
|
return [col1, col2, col3, col4]; |
|
|
|
} |
|
|
|
|
|
|
|
handleColorChange = (color: string) => { |
|
|
|