Skip to content

Commit 2205689

Browse files
committed
refactor(webview-ui): replace deprecated lucide-react icon aliases
1 parent 89e74a7 commit 2205689

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

webview-ui/src/components/chat/ChatRow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import {
6666
FileCode2,
6767
PocketKnife,
6868
FolderTree,
69-
TerminalSquare,
69+
SquareTerminal,
7070
MessageCircle,
7171
Repeat2,
7272
Split,
@@ -294,7 +294,7 @@ export const ChatRowContent = ({
294294
isCommandExecuting ? (
295295
<ProgressIndicator />
296296
) : (
297-
<TerminalSquare className="size-4" aria-label="Terminal icon" />
297+
<SquareTerminal className="size-4" aria-label="Terminal icon" />
298298
),
299299
<span style={{ color: normalColor, fontWeight: "bold" }}>
300300
{t("chat:commandExecution.running")}

webview-ui/src/components/chat/CodeIndexPopover.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
VSCodeCheckbox,
1111
} from "@vscode/webview-ui-toolkit/react"
1212
import * as ProgressPrimitive from "@radix-ui/react-progress"
13-
import { AlertTriangle } from "lucide-react"
13+
import { TriangleAlert } from "lucide-react"
1414

1515
import { type IndexingStatus, type EmbedderProvider, CODEBASE_INDEX_DEFAULTS } from "@roo-code/types"
1616

@@ -1748,7 +1748,7 @@ export const CodeIndexPopover: React.FC<CodeIndexPopoverProps> = ({
17481748
<AlertDialogContent>
17491749
<AlertDialogHeader>
17501750
<AlertDialogTitle className="flex items-center gap-2">
1751-
<AlertTriangle className="w-5 h-5 text-yellow-500" />
1751+
<TriangleAlert className="w-5 h-5 text-yellow-500" />
17521752
{t("settings:unsavedChangesDialog.title")}
17531753
</AlertDialogTitle>
17541754
<AlertDialogDescription>

webview-ui/src/components/settings/ApiConfigManager.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { memo, useEffect, useRef, useState } from "react"
22
import { VSCodeTextField } from "@vscode/webview-ui-toolkit/react"
3-
import { AlertTriangle } from "lucide-react"
3+
import { TriangleAlert } from "lucide-react"
44

55
import type { ProviderSettingsEntry, OrganizationAllowList } from "@roo-code/types"
66

@@ -246,7 +246,7 @@ const ApiConfigManager = ({
246246
icon: !valid ? (
247247
<StandardTooltip content={t("settings:validation.profileInvalid")}>
248248
<span>
249-
<AlertTriangle size={16} className="mr-2 text-vscode-errorForeground" />
249+
<TriangleAlert size={16} className="mr-2 text-vscode-errorForeground" />
250250
</span>
251251
</StandardTooltip>
252252
) : undefined,

webview-ui/src/components/settings/SettingsView.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
Database,
1717
SquareTerminal,
1818
FlaskConical,
19-
AlertTriangle,
19+
TriangleAlert,
2020
Globe,
2121
Info,
2222
MessageSquare,
@@ -25,7 +25,7 @@ import {
2525
Glasses,
2626
Plug,
2727
Server,
28-
Users2,
28+
UsersRound,
2929
ArrowLeft,
3030
GitCommitVertical,
3131
GraduationCap,
@@ -532,7 +532,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
532532
const sections: { id: SectionName; icon: LucideIcon }[] = useMemo(
533533
() => [
534534
{ id: "providers", icon: Plug },
535-
{ id: "modes", icon: Users2 },
535+
{ id: "modes", icon: UsersRound },
536536
{ id: "skills", icon: GraduationCap },
537537
{ id: "slashCommands", icon: SquareSlash },
538538
{ id: "rules", icon: ScrollText },
@@ -970,7 +970,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
970970
<AlertDialogContent>
971971
<AlertDialogHeader>
972972
<AlertDialogTitle>
973-
<AlertTriangle className="w-5 h-5 text-yellow-500" />
973+
<TriangleAlert className="w-5 h-5 text-yellow-500" />
974974
{t("settings:unsavedChangesDialog.title")}
975975
</AlertDialogTitle>
976976
<AlertDialogDescription>

0 commit comments

Comments
 (0)