Skip to content

Commit

Permalink
Merge pull request #304 from rayanfer32/fix/footer-year
Browse files Browse the repository at this point in the history
fix: make footer year dynamic
  • Loading branch information
rayanfer32 authored Jan 17, 2023
2 parents ccf1d18 + b2e98af commit 10f0cbb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types/FooterTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import {
import { IoLogoGooglePlaystore } from 'react-icons/io5';
import { SiGitbook } from 'react-icons/si';

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

export const FooterTypes = {
FOOTER_ITEMS: {
PRIMARY: {
Expand Down Expand Up @@ -163,7 +165,7 @@ export const FooterTypes = {
{
href: null,
target: '_blank',
label: 'Copyright © 2014-2022 www.nexus.io',
label: `Copyright © 2014-${currentYear} www.nexus.io`,
icon: undefined,
},
],
Expand Down

0 comments on commit 10f0cbb

Please sign in to comment.