From ee9fa3f159bdf57903ce6d79d66047e08564b680 Mon Sep 17 00:00:00 2001 From: Emily C <138692410+emilycnava@users.noreply.github.com> Date: Tue, 1 Oct 2024 15:34:31 -0400 Subject: [PATCH] Update footer X/Twitter link (#2282) ## Summary Fixes #1588 ### Time to review: <5min ## Changes proposed Update twitter link in footer to 'X': logo, hint/name, and link route itself ## Additional information Screenshot 2024-09-30 at 3 25 25 PM --- frontend/src/components/Footer.tsx | 6 +++--- frontend/src/constants/routes.ts | 2 +- frontend/src/i18n/messages/en/index.ts | 2 +- frontend/tests/components/Footer.test.tsx | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/Footer.tsx b/frontend/src/components/Footer.tsx index cf122e56f..4d52a0e7e 100644 --- a/frontend/src/components/Footer.tsx +++ b/frontend/src/components/Footer.tsx @@ -37,9 +37,9 @@ const Footer = () => { const links = [ { - href: ExternalRoutes.GRANTS_TWITTER, - name: t("link_twitter"), - icon: "twitter", + href: ExternalRoutes.GRANTS_X_TWITTER, + name: t("link_x_twitter"), + icon: "x", }, { href: ExternalRoutes.GRANTS_YOUTUBE, diff --git a/frontend/src/constants/routes.ts b/frontend/src/constants/routes.ts index 5b211caed..224cc9961 100644 --- a/frontend/src/constants/routes.ts +++ b/frontend/src/constants/routes.ts @@ -16,7 +16,7 @@ export const ExternalRoutes = { GRANTS_NEWSLETTER: "https://www.grants.gov/web/grants/connect/newsletter-archive.html", GRANTS_RSS: "https://grants.gov/connect/rss-feeds", - GRANTS_TWITTER: "https://twitter.com/grantsdotgov", + GRANTS_X_TWITTER: "https://x.com/grantsdotgov", GRANTS_YOUTUBE: "https://www.youtube.com/user/GrantsGovUS", GRANTS_BLOG: "https://grantsgovprod.wordpress.com/", HHS: "https://www.hhs.gov", diff --git a/frontend/src/i18n/messages/en/index.ts b/frontend/src/i18n/messages/en/index.ts index ee89e1ca9..133c0e724 100644 --- a/frontend/src/i18n/messages/en/index.ts +++ b/frontend/src/i18n/messages/en/index.ts @@ -397,7 +397,7 @@ export const messages = { agency_contact_center: "Grants.gov Program Management Office", telephone: "1-877-696-6775", return_to_top: "Return to top", - link_twitter: "Twitter", + link_x_twitter: "X (Twitter)", link_youtube: "YouTube", link_github: "Github", link_rss: "RSS", diff --git a/frontend/tests/components/Footer.test.tsx b/frontend/tests/components/Footer.test.tsx index ce844bf93..b461dd7e1 100644 --- a/frontend/tests/components/Footer.test.tsx +++ b/frontend/tests/components/Footer.test.tsx @@ -13,15 +13,15 @@ describe("Footer", () => { it("Renders social links", () => { render(