From ea8d6ffdf820b3fe72c0feb0766ee1707b45f909 Mon Sep 17 00:00:00 2001 From: Harsh R <53080940+fullstackninja864@users.noreply.github.com> Date: Thu, 3 Aug 2023 05:25:38 +0530 Subject: [PATCH] chore(ui-ux): updated twitter logo to its latest version (#1843) * chore(ui-ux): updated twitter logo to its latest version * trigger GitHub actions --------- Co-authored-by: pierregee --- src/components/icons/assets/TwitterIcon.tsx | 18 ++++++++++++++++++ src/layouts/components/Footer.tsx | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 src/components/icons/assets/TwitterIcon.tsx diff --git a/src/components/icons/assets/TwitterIcon.tsx b/src/components/icons/assets/TwitterIcon.tsx new file mode 100644 index 000000000..6ff19009e --- /dev/null +++ b/src/components/icons/assets/TwitterIcon.tsx @@ -0,0 +1,18 @@ +import { SVGProps } from "react"; +import { useTheme } from "@contexts/ThemeContext"; + +export function TwitterIcon({ + color, + ...props +}: SVGProps): JSX.Element { + const { theme } = useTheme(); + const fill = theme === "dark" ? "#ffffff" : "#000000"; + return ( + + + + ); +} diff --git a/src/layouts/components/Footer.tsx b/src/layouts/components/Footer.tsx index 0dfbe1ee7..b11d5902e 100644 --- a/src/layouts/components/Footer.tsx +++ b/src/layouts/components/Footer.tsx @@ -8,7 +8,6 @@ import { FaLinkedin, FaReddit, FaTelegram, - FaTwitterSquare, FaYoutube, } from "react-icons/fa"; import { Container } from "@components/commons/Container"; @@ -16,6 +15,7 @@ import { NetlifyLightLogo } from "@components/icons/NetlifyLightLogo"; import { useSelector } from "react-redux"; import { RootState } from "@store/index"; import { HoverPopover } from "@components/commons/popover/HoverPopover"; +import { TwitterIcon } from "@components/icons/assets/TwitterIcon"; export function Footer(): JSX.Element { return ( @@ -79,7 +79,7 @@ function FooterSectionSocial(): JSX.Element { text="Twitter" testId="FooterSectionSocial.Twitter" > - +