Skip to content

Commit 33e589a

Browse files
committed
Move year var outside component
1 parent 01f9b63 commit 33e589a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ const sections = [
2727
],
2828
},
2929
];
30+
const currentYear = new Date().getFullYear();
3031

3132
export default function Footer() {
32-
const currentYear = new Date().getFullYear();
3333
return (
3434
<section className="border-t relative overflow-hidden py-10">
3535
<div className="container mx-auto max-w-7xl px-8">

0 commit comments

Comments
 (0)