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" > - +