Skip to content

Commit

Permalink
[Footer] add current year dynamically (ant-design#8850)
Browse files Browse the repository at this point in the history
* docs: fix English README link

* docs(lang): add countries' flags

* docs(lang): add countries' flags

* feat(footer): add current year dynamically
  • Loading branch information
kevinadhiguna authored Aug 2, 2021
1 parent 922b92b commit 3729ce4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ export default () => {
defaultMessage: 'θš‚θšι›†ε›’δ½“ιͺŒζŠ€ζœ―部出品',
});

const currentYear = new Date().getFullYear();

return (
<DefaultFooter
copyright={`2020 ${defaultMessage}`}
copyright={`${currentYear} ${defaultMessage}`}
links={[
{
key: 'Ant Design Pro',
Expand Down

0 comments on commit 3729ce4

Please sign in to comment.