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 +