From 39ddbd1bfcb7fad22b33102360683e7234d61cb1 Mon Sep 17 00:00:00 2001 From: Svemat Date: Fri, 29 Sep 2023 18:32:08 +0000 Subject: [PATCH] Fix X Icon --- blog/src/components/DynLink.tsx | 7 ++----- blog/src/components/XIcon.tsx | 18 ++++++++++++++++++ blog/src/components/navbar/HamburgerMenu.tsx | 5 ++--- blog/src/components/post/PostFooter.tsx | 5 ++--- 4 files changed, 24 insertions(+), 11 deletions(-) create mode 100644 blog/src/components/XIcon.tsx diff --git a/blog/src/components/DynLink.tsx b/blog/src/components/DynLink.tsx index 051caf9..a84d208 100644 --- a/blog/src/components/DynLink.tsx +++ b/blog/src/components/DynLink.tsx @@ -1,9 +1,8 @@ -import Image from 'next/image'; import Link from 'next/link'; import { FC } from 'react'; import { FiExternalLink, FiMail, FiYoutube } from 'react-icons/fi'; -import xLogo from '../../public/icons/x.svg'; +import { XIcon } from './XIcon'; export const DynLink: FC<{ href: string }> = ({ href, ...properties }) => { const isExternal = href.startsWith('http'); @@ -23,9 +22,7 @@ export const DynLink: FC<{ href: string }> = ({ href, ...properties }) => { {isYoutube && } - {isTwitter && ( - X - )} + {isTwitter && } {isEmail && } = ({ className }) => { + return ( + + + + ); +}; diff --git a/blog/src/components/navbar/HamburgerMenu.tsx b/blog/src/components/navbar/HamburgerMenu.tsx index 50170bd..50e1d3a 100644 --- a/blog/src/components/navbar/HamburgerMenu.tsx +++ b/blog/src/components/navbar/HamburgerMenu.tsx @@ -1,11 +1,10 @@ -import Image from 'next/image'; import Link from 'next/link'; import { FC } from 'react'; import { FaDiscord, FaYoutube } from 'react-icons/fa'; import { FiGithub, FiMessageCircle } from 'react-icons/fi'; -import xLogo from '../../../public/icons/x.svg'; import { CrossSVG, MenuSVG } from '../ClientIcons'; +import { XIcon } from '../XIcon'; const links = [ { name: 'ENS Manager', to: 'https://app.ens.domains' }, @@ -16,7 +15,7 @@ const links = [ const socials = [ { - icon: text-neutral-400, + icon: , to: 'https://twitter.com/ensdomains', }, { icon: , to: 'https://github.com/ensdomains' }, diff --git a/blog/src/components/post/PostFooter.tsx b/blog/src/components/post/PostFooter.tsx index 293ccbe..a8100fa 100644 --- a/blog/src/components/post/PostFooter.tsx +++ b/blog/src/components/post/PostFooter.tsx @@ -1,13 +1,12 @@ /* eslint-disable sonarjs/no-duplicate-string */ import clsx from 'clsx'; -import Image from 'next/image'; import { FaFacebookF, FaLinkedin } from 'react-icons/fa'; import { BlogPostMetadata } from '@/types/BlogPostMetadata'; -import xLogo from '../../../public/icons/x.svg'; import { Author } from '../Author'; import { BigTag } from '../tags/BigTag'; +import { XIcon } from '../XIcon'; export const PostFooter = ({ post }: { post: BlogPostMetadata }) => { return ( @@ -29,7 +28,7 @@ export const PostFooter = ({ post }: { post: BlogPostMetadata }) => { rel="noopener noreferrer" className="flex w-5 items-center" > - X logo +