Skip to content

Commit

Permalink
fix: modify year manually
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun969 committed Jan 26, 2024
1 parent 721f963 commit 9bb173e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/sponsors/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Paragraph from '@/components/Paragraph';
import Sponsors from '@/components/Sponsors';
import Title from '@/components/Title';
import type { SponsorType } from '@/data/sponsors';
import { YEAR, type SponsorType } from '@/data/sponsors';
import Image from 'next/image';

const SPONSOR_TYPE_COLORS = {
Expand All @@ -21,7 +21,7 @@ export default function SponsorsPage() {
height={500}
className="hidden w-20 md:block"
/>
<Title colour="yellow">{`${new Date().getFullYear()} Sponsors`}</Title>
<Title colour="yellow">{`${YEAR} Sponsors`}</Title>
<Image
src="/images/yellow-duck.svg"
alt="Duck"
Expand Down
2 changes: 2 additions & 0 deletions src/data/sponsors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export type Sponsor = {
type: SponsorType;
};

export const YEAR = 2023;

// Image file should be in `/public/images/sponsors`
export const SPONSORS: Sponsor[] = [
{
Expand Down

0 comments on commit 9bb173e

Please sign in to comment.