dynamic year change added

This commit is contained in:
VividTruthKeeper 2022-08-19 00:57:10 +05:00
parent dc8fa9226a
commit d2bf6cde45
1 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@ const Footer = ({
setDropdownBurger,
setBurgerOpen,
}: footerProps) => {
const date = new Date();
const breakpoint: Record<number, boolean> = {
1300: useMediaQuery("(max-width: 1300px)"),
};
@ -62,8 +63,8 @@ const Footer = ({
<div className="footer-bottom-inner">
<div className="footer-bottom-left">
<p>
Copyright 2012-2022 Шахматная федерация Туркменистана |{" "}
<a href="/">Пользовательское соглашение</a>
Copyright 2012-{date.getFullYear()} Шахматная федерация
Туркменистана | <a href="/">Пользовательское соглашение</a>
</p>
</div>
<div className="footer-bottom-right">