Skip to content

Commit bd56096

Browse files
committed
fix: update social links in Footer component to use SOCIALS constants
1 parent 4cc8a2e commit bd56096

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/components/Footer/Footer.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import FooterCopyright from "./FooterCopyright";
55
import { ROUTES } from "../../constants/routes";
66
import { FaDiscord, FaGithub, FaMastodon, FaXTwitter } from "react-icons/fa6";
77
import { SiMatrix } from "react-icons/si";
8+
import { SOCIALS } from "../../constants/socials";
89

910
const Footer: React.FC = () => (
1011
<footer className={styles.footer}>
@@ -27,19 +28,19 @@ const Footer: React.FC = () => (
2728
</div>
2829
</div>
2930
<div className={styles.footerSocialLinks}>
30-
<Link href={ROUTES.SOCIALS.DISCORD} target="_blank" rel="noopener noreferrer" aria-label="Discord">
31+
<Link href={SOCIALS.DISCORD} target="_blank" rel="noopener noreferrer" aria-label="Discord">
3132
<FaDiscord />
3233
</Link>
33-
<Link href={ROUTES.SOCIALS.ACTIVITY_PUB} target="_blank" rel="noopener noreferrer" aria-label="Mastodon">
34+
<Link href={SOCIALS.ACTIVITY_PUB} target="_blank" rel="noopener noreferrer" aria-label="Mastodon">
3435
<FaMastodon />
3536
</Link>
36-
<Link href={ROUTES.SOCIALS.X} target="_blank" rel="noopener noreferrer" aria-label="X">
37+
<Link href={SOCIALS.X} target="_blank" rel="noopener noreferrer" aria-label="X">
3738
<FaXTwitter />
3839
</Link>
39-
<Link href={ROUTES.SOCIALS.MATRIX} target="_blank" rel="noopener noreferrer" aria-label="Matrix">
40+
<Link href={SOCIALS.MATRIX} target="_blank" rel="noopener noreferrer" aria-label="Matrix">
4041
<SiMatrix />
4142
</Link>
42-
<Link href={ROUTES.SOCIALS.GITHUB} target="_blank" rel="noopener noreferrer" aria-label="GitHub">
43+
<Link href={SOCIALS.GITHUB} target="_blank" rel="noopener noreferrer" aria-label="GitHub">
4344
<FaGithub />
4445
</Link>
4546
</div>

0 commit comments

Comments
 (0)