Skip to content

Commit 1e0430f

Browse files
committed
feat: implement LINKS constant for Open Source license in FooterCopyright component
1 parent c8cd323 commit 1e0430f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/Footer/FooterCopyright.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
"use client";
2-
31
import Link from "next/link";
42
import React from "react";
53
import styles from "../../styles/components/Footer/FooterCopyright.module.scss";
64
import { FaRegCopyright } from "react-icons/fa";
5+
import { LINKS } from "../../constants/links";
76

87
const FooterCopyright: React.FC = () => {
98
return (
10-
<Link href="/" className={styles.link}>
9+
<Link href={LINKS.opensourceLicense} className={styles.link}>
1110
Open Source
1211
<span className={styles.copyright}>
1312
<FaRegCopyright />

src/constants/links.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const LINKS = {
2+
opensourceLicense: "https://www.gnu.org/licenses/agpl-3.0.en.html"
3+
};

0 commit comments

Comments
 (0)