From 3e3c763c4c16cb9a297f2709820e69b5bff0bc34 Mon Sep 17 00:00:00 2001 From: shrivatsaBhat Date: Thu, 5 Jan 2023 22:16:09 +0530 Subject: [PATCH 1/2] fix: footer year privacy --- src/types/FooterTypes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/types/FooterTypes.js b/src/types/FooterTypes.js index 8e96bd70..803e0d04 100644 --- a/src/types/FooterTypes.js +++ b/src/types/FooterTypes.js @@ -163,7 +163,9 @@ export const FooterTypes = { { href: null, target: '_blank', - label: 'Copyright © 2014-2022 www.nexus.io', + label: `Copyright © 2014-${ + new Date().getFullYear() ?? 2023 + } www.nexus.io`, icon: undefined, }, ], From 9d6de6e9aea93a2a4ec90c2f29adc551f5ea2a14 Mon Sep 17 00:00:00 2001 From: shrivatsaBhat Date: Tue, 17 Jan 2023 17:54:06 +0530 Subject: [PATCH 2/2] fix: fetch current year --- src/types/FooterTypes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types/FooterTypes.js b/src/types/FooterTypes.js index 803e0d04..658f0b13 100644 --- a/src/types/FooterTypes.js +++ b/src/types/FooterTypes.js @@ -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: { @@ -163,9 +165,7 @@ export const FooterTypes = { { href: null, target: '_blank', - label: `Copyright © 2014-${ - new Date().getFullYear() ?? 2023 - } www.nexus.io`, + label: `Copyright © 2014-${currentYear} www.nexus.io`, icon: undefined, }, ],