Skip to content

Commit

Permalink
chore(ui-ux): updated twitter logo to its latest version (#1843)
Browse files Browse the repository at this point in the history
* chore(ui-ux): updated twitter logo to its latest version

* trigger GitHub actions

---------

Co-authored-by: pierregee <[email protected]>
  • Loading branch information
fullstackninja864 and pierregee authored Aug 2, 2023
1 parent e5d6748 commit ea8d6ff
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions src/components/icons/assets/TwitterIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { SVGProps } from "react";
import { useTheme } from "@contexts/ThemeContext";

export function TwitterIcon({
color,
...props
}: SVGProps<SVGSVGElement>): JSX.Element {
const { theme } = useTheme();
const fill = theme === "dark" ? "#ffffff" : "#000000";
return (
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" {...props}>
<path
d="M10.0681 10.8965L20.8786 25.3514L10 37.1035H12.4485L21.9729 26.8141L29.6681 37.1035H38L26.581 21.8358L36.7069 10.8965H34.2584L25.4872 20.3726L18.4 10.8965H10.0681ZM13.6688 12.7004H17.4964L34.3989 35.3001H30.5712L13.6688 12.7004Z"
fill={fill}
/>
</svg>
);
}
4 changes: 2 additions & 2 deletions src/layouts/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import {
FaLinkedin,
FaReddit,
FaTelegram,
FaTwitterSquare,
FaYoutube,
} from "react-icons/fa";
import { Container } from "@components/commons/Container";
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 (
Expand Down Expand Up @@ -79,7 +79,7 @@ function FooterSectionSocial(): JSX.Element {
text="Twitter"
testId="FooterSectionSocial.Twitter"
>
<FaTwitterSquare size={24} />
<TwitterIcon width={24} height={24} />
</FooterSocialRow>
<FooterSocialRow
url="https://github.com/DeFiCh"
Expand Down

0 comments on commit ea8d6ff

Please sign in to comment.