From 5cadc5e983f1157dc69b31bd1e3af3d2d9c8dbda Mon Sep 17 00:00:00 2001 From: Akshay Sharma <59491379+captain-Akshay@users.noreply.github.com> Date: Sat, 21 Oct 2023 19:33:31 +0530 Subject: [PATCH] fix(www): update twitter icon to X (#1551) * refactor(icon.tsx): twitter icon updated to latest version X icon * refactor(icon.tsx): twitter icon updated to latest version X icon * refactor(icons.tsx): added the same changes to the icon for X twitter icon * refactor(icons.tsx): change the formating of the code --------- Co-authored-by: shadcn --- apps/www/components/icons.tsx | 10 ++++++++-- apps/www/components/site-header.tsx | 2 +- templates/next-template/components/icons.tsx | 13 +++++++++++-- templates/next-template/components/site-header.tsx | 2 +- 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/apps/www/components/icons.tsx b/apps/www/components/icons.tsx index 58f873d7be..327ff5e3b2 100644 --- a/apps/www/components/icons.tsx +++ b/apps/www/components/icons.tsx @@ -29,8 +29,14 @@ export const Icons = { ), twitter: (props: IconProps) => ( - - + + ), gitHub: (props: IconProps) => ( diff --git a/apps/www/components/site-header.tsx b/apps/www/components/site-header.tsx index 3c13add4ad..0c7854a44a 100644 --- a/apps/www/components/site-header.tsx +++ b/apps/www/components/site-header.tsx @@ -50,7 +50,7 @@ export function SiteHeader() { "w-9 px-0" )} > - + Twitter diff --git a/templates/next-template/components/icons.tsx b/templates/next-template/components/icons.tsx index 3a00095b02..e7c323c54a 100644 --- a/templates/next-template/components/icons.tsx +++ b/templates/next-template/components/icons.tsx @@ -2,7 +2,6 @@ import { LucideProps, Moon, SunMedium, - Twitter, type Icon as LucideIcon, } from "lucide-react" @@ -11,7 +10,17 @@ export type Icon = LucideIcon export const Icons = { sun: SunMedium, moon: Moon, - twitter: Twitter, + twitter: (props: LucideProps) => ( + + + + ), logo: (props: LucideProps) => ( - + Twitter