Skip to content

Commit 8f2a885

Browse files
im-adithyapavanjoshi914rolznz
authored
chore: replace all radix icons with lucide (#1225)
* chore: replace all radix icons with lucide * chore: use consistent naming of icons * chore: further naming changes --------- Co-authored-by: pavanjoshi914 <[email protected]> Co-authored-by: Roland Bewick <[email protected]>
1 parent 1bbbd4c commit 8f2a885

File tree

77 files changed

+328
-333
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+328
-333
lines changed

frontend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"@radix-ui/react-checkbox": "^1.0.4",
2929
"@radix-ui/react-dialog": "^1.1.6",
3030
"@radix-ui/react-dropdown-menu": "^2.0.6",
31-
"@radix-ui/react-icons": "^1.3.0",
3231
"@radix-ui/react-label": "^2.0.2",
3332
"@radix-ui/react-navigation-menu": "^1.1.4",
3433
"@radix-ui/react-popover": "^1.1.1",

frontend/src/components/AuthCodeForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RefreshCw } from "lucide-react";
1+
import { RefreshCwIcon } from "lucide-react";
22
import React, { useState } from "react";
33
import { useNavigate } from "react-router-dom";
44
import Container from "src/components/Container";
@@ -97,7 +97,7 @@ function AuthCodeForm({ url }: AuthCodeFormProps) {
9797
variant="outline"
9898
onClick={() => url && openLink(url)}
9999
>
100-
<RefreshCw className="w-4 h-4" />
100+
<RefreshCwIcon className="w-4 h-4" />
101101
</Button>
102102
</div>
103103
</>

frontend/src/components/CardButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ChevronRight } from "lucide-react";
1+
import { ChevronRightIcon } from "lucide-react";
22
import { ReactElement } from "react";
33
import { Link } from "react-router-dom";
44
import { Card } from "src/components/ui/card";
@@ -21,7 +21,7 @@ function CardButton({ title, description, to }: Props) {
2121
<div className="text-muted-foreground text-sm">{description}</div>
2222
</div>
2323
<div>
24-
<ChevronRight />
24+
<ChevronRightIcon />
2525
</div>
2626
</div>
2727
</Card>

frontend/src/components/Loading.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Loader, Loader2 } from "lucide-react";
1+
import { Loader2Icon, LoaderIcon } from "lucide-react";
22
import { cn } from "src/lib/utils";
33

44
function Loading({
@@ -8,7 +8,7 @@ function Loading({
88
className?: string;
99
variant?: "loader2" | "loader";
1010
}) {
11-
const Component = variant === "loader2" ? Loader2 : Loader;
11+
const Component = variant === "loader2" ? Loader2Icon : LoaderIcon;
1212

1313
return (
1414
<>

frontend/src/components/Permissions.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AlertTriangleIcon, BrickWall, PlusCircle } from "lucide-react";
1+
import { AlertTriangleIcon, BrickWallIcon, PlusCircleIcon } from "lucide-react";
22
import React from "react";
33
import BudgetAmountSelect from "src/components/BudgetAmountSelect";
44
import BudgetRenewalSelect from "src/components/BudgetRenewalSelect";
@@ -119,7 +119,7 @@ const Permissions: React.FC<PermissionsProps> = ({
119119
{permissions.isolated && (
120120
<>
121121
<div className="flex items-center gap-2 mb-2">
122-
<BrickWall className="w-4 h-4" />
122+
<BrickWallIcon className="w-4 h-4" />
123123
<p className="text-sm font-medium">Isolated App</p>
124124
</div>
125125

@@ -147,7 +147,7 @@ const Permissions: React.FC<PermissionsProps> = ({
147147
}}
148148
className={cn("mr-4", showExpiryOptions && "mb-4")}
149149
>
150-
<PlusCircle className="w-4 h-4 mr-2" />
150+
<PlusCircleIcon className="w-4 h-4 mr-2" />
151151
Set budget
152152
</Button>
153153
)}
@@ -204,7 +204,7 @@ const Permissions: React.FC<PermissionsProps> = ({
204204
variant="secondary"
205205
onClick={() => setShowExpiryOptions(true)}
206206
>
207-
<PlusCircle className="w-4 h-4 mr-2" />
207+
<PlusCircleIcon className="w-4 h-4 mr-2" />
208208
Set expiration time
209209
</Button>
210210
)}

frontend/src/components/Scopes.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {
2-
ArrowDownUp,
3-
BrickWall,
2+
ArrowDownUpIcon,
3+
BrickWallIcon,
44
LucideIcon,
5-
MoveDown,
6-
SquarePen,
5+
MoveDownIcon,
6+
SquarePenIcon,
77
} from "lucide-react";
88
import React from "react";
99
import { Checkbox } from "src/components/ui/checkbox";
@@ -16,10 +16,10 @@ type ScopeGroup = (typeof scopeGroups)[number];
1616
type ScopeGroupIconMap = { [key in ScopeGroup]: LucideIcon };
1717

1818
const scopeGroupIconMap: ScopeGroupIconMap = {
19-
full_access: ArrowDownUp,
20-
read_only: MoveDown,
21-
isolated: BrickWall,
22-
custom: SquarePen,
19+
full_access: ArrowDownUpIcon,
20+
read_only: MoveDownIcon,
21+
isolated: BrickWallIcon,
22+
custom: SquarePenIcon,
2323
};
2424

2525
const scopeGroupTitle: Record<ScopeGroup, string> = {

frontend/src/components/SidebarHint.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ListTodo, LucideIcon, Zap } from "lucide-react";
1+
import { ListTodoIcon, LucideIcon, ZapIcon } from "lucide-react";
22
import { ReactElement } from "react";
33
import { Link, useLocation } from "react-router-dom";
44
import { Button } from "src/components/ui/button";
@@ -25,7 +25,7 @@ function SidebarHint() {
2525
) {
2626
return (
2727
<SidebarHintCard
28-
icon={Zap}
28+
icon={ZapIcon}
2929
title="New Channel"
3030
description="You're currently opening a new channel"
3131
buttonText="View Channel"
@@ -44,7 +44,7 @@ function SidebarHint() {
4444
) {
4545
return (
4646
<SidebarHintCard
47-
icon={ListTodo}
47+
icon={ListTodoIcon}
4848
title="Finish Setup"
4949
description={
5050
<>

frontend/src/components/SuggestedApps.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ExternalLinkIcon, Globe } from "lucide-react";
1+
import { ExternalLinkIcon, GlobeIcon } from "lucide-react";
22
import { Link } from "react-router-dom";
33
import ExternalLink from "src/components/ExternalLink";
44
import { AppleIcon } from "src/components/icons/Apple";
@@ -39,7 +39,7 @@ function SuggestedAppCard({
3939
{webLink && (
4040
<ExternalLink to={webLink}>
4141
<Button variant="outline" size="icon">
42-
<Globe className="w-4 h-4" />
42+
<GlobeIcon className="w-4 h-4" />
4343
</Button>
4444
</ExternalLink>
4545
)}

frontend/src/components/TransactionItem.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import utc from "dayjs/plugin/utc";
33
import {
44
ArrowDownIcon,
55
ArrowUpIcon,
6-
ChevronDown,
7-
ChevronUp,
6+
ChevronDownIcon,
7+
ChevronUpIcon,
88
CopyIcon,
99
XIcon,
1010
} from "lucide-react";
@@ -255,9 +255,9 @@ function TransactionItem({ tx }: Props) {
255255
>
256256
Details
257257
{showDetails ? (
258-
<ChevronUp className="w-4 h-4" />
258+
<ChevronUpIcon className="w-4 h-4" />
259259
) : (
260-
<ChevronDown className="w-4 h-4" />
260+
<ChevronDownIcon className="w-4 h-4" />
261261
)}
262262
</div>
263263
{showDetails && (

frontend/src/components/TransactionsList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Drum } from "lucide-react";
1+
import { DrumIcon } from "lucide-react";
22
import { useMemo, useRef, useState } from "react";
33
import EmptyState from "src/components/EmptyState";
44
import Loading from "src/components/Loading";
@@ -57,7 +57,7 @@ function TransactionsList({
5757
<div ref={transactionListRef} className="transaction-list flex flex-col">
5858
{!transactions.length ? (
5959
<EmptyState
60-
icon={Drum}
60+
icon={DrumIcon}
6161
title="No transactions yet"
6262
description="Your most recent incoming and outgoing payments will show up here."
6363
buttonText="Receive Your First Payment"

0 commit comments

Comments
 (0)