Skip to content

Commit 766087d

Browse files
committed
replace react-icons with Lucide icons
1 parent 032f114 commit 766087d

File tree

9 files changed

+42
-83
lines changed

9 files changed

+42
-83
lines changed

src/components/NotFound.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Link } from '@tanstack/react-router'
2-
import { TbGhost } from 'react-icons/tb'
2+
import { Ghost } from 'lucide-react'
33

44
export function NotFound({ children }: { children?: any }) {
55
return (
@@ -8,7 +8,7 @@ export function NotFound({ children }: { children?: any }) {
88
<h1 className="text-3xl font-black uppercase [letter-spacing:-0.02em]">
99
404 Not Found
1010
</h1>
11-
<TbGhost className="text-[10rem] opacity-20 hover:opacity-100 animate-bounce mt-8 blur-md hover:blur-none transition-all duration-300" />
11+
<Ghost className="text-[10rem] opacity-20 hover:opacity-100 animate-bounce mt-8 blur-md hover:blur-none transition-all duration-300" />
1212
<p>The page you are looking for does not exist.</p>
1313
{children || (
1414
<p className="flex items-center gap-2 flex-wrap">

src/components/Spinner.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { TbFidgetSpinner } from 'react-icons/tb'
21
import { twMerge } from 'tailwind-merge'
2+
import { Fan } from 'lucide-react'
33

44
interface SpinnerProps {
55
className?: string
66
}
77

88
export function Spinner({ className }: SpinnerProps) {
99
return (
10-
<TbFidgetSpinner
10+
<Fan
1111
className={twMerge(
1212
'animate-spin text-gray-900 dark:text-white text-2xl',
1313
className,
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import * as React from 'react'
2+
3+
export function BaseballCapIcon({
4+
className,
5+
width = '1em',
6+
height = '1em',
7+
...props
8+
}: React.SVGProps<SVGSVGElement>) {
9+
return (
10+
<svg
11+
viewBox="0 0 256 256"
12+
stroke="currentColor"
13+
fill="currentColor"
14+
strokeWidth={2}
15+
width={width}
16+
height={height}
17+
role="img"
18+
aria-hidden={props['aria-label'] ? undefined : true}
19+
className={className}
20+
{...props}
21+
>
22+
<path d="M128,20A108.12,108.12,0,0,0,20,128v56a27.86,27.86,0,0,0,15.26,24.93,28,28,0,0,0,29.28-2.34C76.2,198.11,96.68,188,128,188s51.8,10.1,63.46,18.58A28,28,0,0,0,236,184V128A108.12,108.12,0,0,0,128,20Zm84,108v1.87a170,170,0,0,0-33.29-14.3,170.81,170.81,0,0,0-23.45-67A84.14,84.14,0,0,1,212,128Zm-58.46-18.12a174.42,174.42,0,0,0-51.08,0A150,150,0,0,1,128,50.94,150.07,150.07,0,0,1,153.54,109.88Zm-52.8-61.31a170.81,170.81,0,0,0-23.45,67A170,170,0,0,0,44,129.87V128A84.14,84.14,0,0,1,100.74,48.57Zm109.11,139a4,4,0,0,1-4.28-.36C191,176.61,165.77,164,128,164s-63,12.61-77.57,23.18a4,4,0,0,1-4.28.36A3.76,3.76,0,0,1,44,184V158.14a148,148,0,0,1,168,0V184A3.76,3.76,0,0,1,209.85,187.54Z"></path>
23+
</svg>
24+
)
25+
}

src/libraries/ranger.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Book, RotateCw, Wallpaper } from 'lucide-react'
1+
import { Book, PlugZap, RotateCw, Wallpaper } from 'lucide-react'
22
import { TbZoomQuestion } from 'react-icons/tb'
33
import { RiLightbulbFlashLine } from 'react-icons/ri'
44
import { twMerge } from 'tailwind-merge'
@@ -50,7 +50,7 @@ export const rangerProject = {
5050
{
5151
title: 'Typesafe & powerful, yet familiarly simple',
5252
icon: (
53-
<RiLightbulbFlashLine
53+
<PlugZap
5454
className={twMerge('scale-125 animate-pulse', textStyles)}
5555
/>
5656
),

src/libraries/router.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { Book, DatabaseZap, Wallpaper } from 'lucide-react'
1+
import { Book, DatabaseZap, MessageCircleQuestionMark, PlugZap, Wallpaper } from 'lucide-react'
22
import { RiLightbulbFlashLine } from 'react-icons/ri'
3-
import { TbZoomQuestion } from 'react-icons/tb'
43
import { twMerge } from 'tailwind-merge'
54
import { redirect } from '@tanstack/react-router'
65
import { GithubIcon } from '~/components/icons/GithubIcon'
@@ -61,7 +60,7 @@ export const routerProject = {
6160
{
6261
title: 'Typesafe & powerful, yet familiarly simple',
6362
icon: (
64-
<RiLightbulbFlashLine className={twMerge('scale-125', textStyles)} />
63+
<PlugZap className={twMerge('scale-125', textStyles)} />
6564
),
6665
description: (
6766
<div>
@@ -99,7 +98,7 @@ export const routerProject = {
9998
},
10099
{
101100
title: 'Search Param APIs to make your state-manager jealous',
102-
icon: <TbZoomQuestion className={twMerge('', textStyles)} />,
101+
icon: <MessageCircleQuestionMark className={twMerge('', textStyles)} />,
103102
description: (
104103
<div>
105104
Instead of throwing you to the URLSearchParam wolves, TanStack Router

src/libraries/start.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { Book, Wallpaper } from 'lucide-react'
2-
import { PiRocketLaunchDuotone, PiTreeStructureBold } from 'react-icons/pi'
3-
import { TbServerBolt } from 'react-icons/tb'
1+
import { Book, Network, Rocket, ServerCrash, Wallpaper } from 'lucide-react'
42
import { twMerge } from 'tailwind-merge'
53
import { redirect } from '@tanstack/react-router'
64
import { GithubIcon } from '~/components/icons/GithubIcon'
@@ -59,7 +57,7 @@ export const startProject = {
5957
{
6058
title: 'Enterprise-Grade Routing',
6159
icon: (
62-
<PiTreeStructureBold
60+
<Network
6361
className={twMerge('motion-safe:animate-pulse', textStyles)}
6462
style={{
6563
animationDuration: '5s',
@@ -83,7 +81,7 @@ export const startProject = {
8381
{
8482
title: 'SSR, Streaming and Server RPCs',
8583
icon: (
86-
<TbServerBolt
84+
<ServerCrash
8785
className={twMerge('motion-safe:animate-ping', textStyles)}
8886
style={{
8987
animationDuration: '2s',
@@ -133,7 +131,7 @@ export const startProject = {
133131
{
134132
title: 'Deploy Anywhere',
135133
icon: (
136-
<PiRocketLaunchDuotone
134+
<Rocket
137135
className={twMerge('motion-safe:animate-bounce', textStyles)}
138136
style={{
139137
animationDuration: '2.5s',

src/routes/_libraries/dashboard.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { createFileRoute } from '@tanstack/react-router'
22
import { useState, useEffect } from 'react'
3-
import { PiHandWavingLight } from 'react-icons/pi'
4-
import { ArrowRight } from 'lucide-react'
3+
import { ArrowRight, Hand } from 'lucide-react'
54

65
export const Route = createFileRoute('/_libraries/dashboard')({
76
component: Dashboard,
@@ -35,7 +34,7 @@ function Dashboard() {
3534
animation: waved ? 'hand-wave 1s ease-in-out 1' : undefined,
3635
}}
3736
>
38-
<PiHandWavingLight className="w-24 h-24 text-yellow-500 rounded-full" />
37+
<Hand className="w-24 h-24 text-yellow-500 rounded-full" />
3938
</div>
4039
</div>
4140
<h2 className="text-xl font-semibold text-gray-900 dark:text-white mb-1 text-center">

src/routes/merch.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { createFileRoute } from '@tanstack/react-router'
33
import { Footer } from '~/components/Footer'
44
import { seo } from '~/utils/seo'
55
import { Shirt, ShoppingBag, Smartphone, Tag, Circle } from 'lucide-react'
6-
import { PiBaseballCapBold } from 'react-icons/pi'
76
import { twMerge } from 'tailwind-merge'
7+
import { BaseballCapIcon } from '~/components/icons/BaseballCapIcon'
88

99
export const Route = createFileRoute('/merch')({
1010
component: RouteComp,
@@ -24,7 +24,7 @@ const merchItems = [
2424
'T-shirts, sweatshirts, hoodies, onesies, hats, totes, and phone cases featuring TanStack designs',
2525
icons: [
2626
{ Icon: Shirt, label: 'T-shirts' },
27-
{ Icon: PiBaseballCapBold, label: 'Hats' },
27+
{ Icon: BaseballCapIcon, label: 'Hats' },
2828
{ Icon: ShoppingBag, label: 'Totes' },
2929
{ Icon: Smartphone, label: 'Phone cases' },
3030
],

tmp/react-icons-usage.txt

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)