From 3e899b05f71ed87b185ec4b7c814b6122f32ae20 Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Sat, 19 Sep 2026 14:07:22 -0700 Subject: [PATCH] fix(portfolio): keep profile links consistent --- src/components/Contact.jsx | 5 +++-- src/components/Hero.jsx | 5 +++-- src/components/__tests__/Contact.test.jsx | 2 +- src/constants/profileLinks.js | 4 ++++ 4 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 src/constants/profileLinks.js diff --git a/src/components/Contact.jsx b/src/components/Contact.jsx index d219e01..e181d48 100644 --- a/src/components/Contact.jsx +++ b/src/components/Contact.jsx @@ -6,6 +6,7 @@ import { FaGithub, } from "react-icons/fa"; import { FiDownload, FiMail } from "react-icons/fi"; +import { PROFILE_LINKS } from "../constants/profileLinks"; const Contact = () => { const [status, setStatus] = useState("idle"); @@ -56,8 +57,8 @@ const Contact = () => {
- - + +
diff --git a/src/components/Hero.jsx b/src/components/Hero.jsx index 681de83..9d578b0 100644 --- a/src/components/Hero.jsx +++ b/src/components/Hero.jsx @@ -1,6 +1,7 @@ // src/components/Hero.jsx import { FaGithub, FaLinkedinIn } from "react-icons/fa"; import { FiArrowRight, FiDownload } from "react-icons/fi"; +import { PROFILE_LINKS } from "../constants/profileLinks"; export default function Hero() { return ( @@ -26,10 +27,10 @@ export default function Hero() {
- + - +
diff --git a/src/components/__tests__/Contact.test.jsx b/src/components/__tests__/Contact.test.jsx index a864173..3ed5aa3 100644 --- a/src/components/__tests__/Contact.test.jsx +++ b/src/components/__tests__/Contact.test.jsx @@ -21,7 +21,7 @@ it('includes direct contact, resume, and social links', () => { expect(screen.getByRole('link', { name: 'Email' })).toHaveAttribute('href', 'mailto:aj.thompson8888@gmail.com') expect(screen.getByRole('link', { name: 'Résumé' })).toHaveAttribute('href', '/Andrew_Thompson_Resume.pdf') - expect(screen.getByRole('link', { name: 'LinkedIn' })).toHaveAttribute('href', 'https://www.linkedin.com/in/andrew-thompson-dev') + expect(screen.getByRole('link', { name: 'LinkedIn' })).toHaveAttribute('href', 'https://www.linkedin.com/in/andrew-thompson-dev-442477aa') expect(screen.getByRole('link', { name: 'GitHub' })).toHaveAttribute('href', 'https://github.com/Ajthompson88') }) }) diff --git a/src/constants/profileLinks.js b/src/constants/profileLinks.js new file mode 100644 index 0000000..a8d1e93 --- /dev/null +++ b/src/constants/profileLinks.js @@ -0,0 +1,4 @@ +export const PROFILE_LINKS = { + linkedin: "https://www.linkedin.com/in/andrew-thompson-dev-442477aa", + github: "https://github.com/Ajthompson88", +};