Skip to content

Commit 4c3d9e4

Browse files
author
Philip Halsall
committed
adding getdate fn and using it to always have correct copyright date
1 parent 20d8f81 commit 4c3d9e4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/theme/Footer/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ import WeChatLogo from '@site/static/svg/socials/wechat_24x24.svg';
1515
import YoutubeLogo from '@site/static/svg/socials/youtube_24x24.svg';
1616
import { FormSubmitUrl } from '@site/src/constants';
1717

18+
function getCurrentYear(){
19+
const today = new Date();
20+
const year = today.getFullYear();
21+
return year;
22+
}
23+
1824
function Footer(): JSX.Element | null {
1925
const [email, setEmail] = React.useState('');
2026
const [isSubmitted, setIsSubmitted] = React.useState(false);
@@ -230,7 +236,7 @@ function Footer(): JSX.Element | null {
230236
</ul>
231237
</div>
232238
<div className={styles.minaFooter_legals__info}>
233-
©2023 Mina Foundation. All rights reserved.
239+
©{getCurrentYear()} Mina Foundation. All rights reserved.
234240
</div>
235241
</div>
236242
</footer>

0 commit comments

Comments
 (0)