Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Copyright Date to Dynamically Display Current Year #1000

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/ui/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export async function Footer() {
variables: { slug: "footer" },
revalidate: 60 * 60 * 24,
});
const currentYear = new Date().getFullYear();

return (
<footer className="border-neutral-300 bg-neutral-50">
Expand Down Expand Up @@ -55,7 +56,7 @@ export async function Footer() {
</div>

<div className="flex flex-col justify-between border-t border-neutral-200 py-10 sm:flex-row">
<p className="text-sm text-neutral-500">Copyright &copy; 2023 Your Store, Inc.</p>
<p className="text-sm text-neutral-500">Copyright &copy; {currentYear} Your Store, Inc.</p>
<p className="text-sm text-neutral-500">Powered by Saleor</p>
</div>
</div>
Expand Down