Skip to content

Commit 6741a0b

Browse files
mattrothenbergclaude
authored andcommitted
Update Phosphor Icons to use new Icon-suffixed imports
Replace deprecated icon imports with their new Icon-suffixed versions to align with @phosphor-icons/react v2.1+ naming convention: - Bug → BugIcon - Moon → MoonIcon - Robot → RobotIcon - Sun → SunIcon - Trash → TrashIcon - PaperPlaneTilt → PaperPlaneTiltIcon - Stop → StopIcon - X → XIcon - ArrowsClockwise → ArrowsClockwiseIcon - DotsThree → DotsThreeIcon - CaretDown → CaretDownIcon 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 040eafd commit 6741a0b

File tree

6 files changed

+25
-25
lines changed

6 files changed

+25
-25
lines changed

src/app.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ import { ToolInvocationCard } from "@/components/tool-invocation-card/ToolInvoca
1717

1818
// Icon imports
1919
import {
20-
Bug,
21-
Moon,
22-
Robot,
23-
Sun,
24-
Trash,
25-
PaperPlaneTilt,
26-
Stop
20+
BugIcon,
21+
MoonIcon,
22+
RobotIcon,
23+
SunIcon,
24+
TrashIcon,
25+
PaperPlaneTiltIcon,
26+
StopIcon
2727
} from "@phosphor-icons/react";
2828

2929
// List of tools that require human confirmation
@@ -163,7 +163,7 @@ export default function Chat() {
163163
</div>
164164

165165
<div className="flex items-center gap-2 mr-2">
166-
<Bug size={16} />
166+
<BugIcon size={16} />
167167
<Toggle
168168
toggled={showDebug}
169169
aria-label="Toggle debug mode"
@@ -178,7 +178,7 @@ export default function Chat() {
178178
className="rounded-full h-9 w-9"
179179
onClick={toggleTheme}
180180
>
181-
{theme === "dark" ? <Sun size={20} /> : <Moon size={20} />}
181+
{theme === "dark" ? <SunIcon size={20} /> : <MoonIcon size={20} />}
182182
</Button>
183183

184184
<Button
@@ -188,7 +188,7 @@ export default function Chat() {
188188
className="rounded-full h-9 w-9"
189189
onClick={clearHistory}
190190
>
191-
<Trash size={20} />
191+
<TrashIcon size={20} />
192192
</Button>
193193
</div>
194194

@@ -199,7 +199,7 @@ export default function Chat() {
199199
<Card className="p-6 max-w-md mx-auto bg-neutral-100 dark:bg-neutral-900">
200200
<div className="text-center space-y-4">
201201
<div className="bg-[#F48120]/10 text-[#F48120] rounded-full p-3 inline-flex">
202-
<Robot size={24} />
202+
<RobotIcon size={24} />
203203
</div>
204204
<h3 className="font-semibold text-lg">Welcome to AI Chat</h3>
205205
<p className="text-muted-foreground text-sm">
@@ -392,7 +392,7 @@ export default function Chat() {
392392
className="inline-flex items-center cursor-pointer justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full p-1.5 h-fit border border-neutral-200 dark:border-neutral-800"
393393
aria-label="Stop generation"
394394
>
395-
<Stop size={16} />
395+
<StopIcon size={16} />
396396
</button>
397397
) : (
398398
<button
@@ -401,7 +401,7 @@ export default function Chat() {
401401
disabled={pendingToolCallConfirmation || !agentInput.trim()}
402402
aria-label="Send message"
403403
>
404-
<PaperPlaneTilt size={16} />
404+
<PaperPlaneTiltIcon size={16} />
405405
</button>
406406
)}
407407
</div>

src/components/button/RefreshButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { Button } from "@/components/button/Button";
22
import type { ButtonProps } from "@/components/button/Button";
33
import { cn } from "@/lib/utils";
4-
import { ArrowsClockwise } from "@phosphor-icons/react";
4+
import { ArrowsClockwiseIcon } from "@phosphor-icons/react";
55

66
export const RefreshButton = ({ ...props }: ButtonProps) => (
77
<Button shape="square" toggled={props.toggled} {...props}>
8-
<ArrowsClockwise
8+
<ArrowsClockwiseIcon
99
className={cn({
1010
"animate-refresh": props.toggled,
1111
"size-4.5": props.size === "base",

src/components/dropdown/DropdownMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** biome-ignore-all lint/a11y/noStaticElementInteractions: todo */
2-
import { DotsThree, IconContext } from "@phosphor-icons/react";
2+
import { DotsThreeIcon, IconContext } from "@phosphor-icons/react";
33
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
44

55
import { cn } from "@/lib/utils";
@@ -96,7 +96,7 @@ const DropdownMenu = ({
9696
)}
9797
disabled={disabled}
9898
>
99-
{children ?? <DotsThree weight="bold" />}
99+
{children ?? <DotsThreeIcon weight="bold" />}
100100
</DropdownMenuPrimitive.Trigger>
101101
<DropdownMenuPrimitive.Portal>
102102
<DropdownMenuPrimitive.Content

src/components/modal/Modal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Button } from "@/components/button/Button";
22
import { Card } from "@/components/card/Card";
33
import useClickOutside from "@/hooks/useClickOutside";
4-
import { X } from "@phosphor-icons/react";
4+
import { XIcon } from "@phosphor-icons/react";
55

66
import { useEffect, useRef } from "react";
77
import { cn } from "@/lib/utils";
@@ -100,7 +100,7 @@ export const Modal = ({
100100
onClick={onClose}
101101
variant="ghost"
102102
>
103-
<X size={16} />
103+
<XIcon size={16} />
104104
</Button>
105105
</Card>
106106
</div>

src/components/orbit-site/ThemeSelector.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import useTheme from "@/hooks/useTheme";
22
import { cn } from "@/lib/utils";
3-
import { Moon, Sun } from "@phosphor-icons/react";
3+
import { MoonIcon, SunIcon } from "@phosphor-icons/react";
44
import { useState } from "react";
55

66
const ThemeSelector = () => {
@@ -18,13 +18,13 @@ const ThemeSelector = () => {
1818
className="flex size-8 cursor-pointer items-center justify-center rounded-md hover:bg-neutral-200/60 dark:hover:bg-neutral-900"
1919
onClick={() => toggleTheme()}
2020
>
21-
<Moon
21+
<MoonIcon
2222
weight="bold"
2323
className={cn("hidden", {
2424
"animate-fade block": theme === "dark"
2525
})}
2626
/>
27-
<Sun
27+
<SunIcon
2828
weight="bold"
2929
className={cn("animate-fade block", {
3030
hidden: theme === "dark"

src/components/tool-invocation-card/ToolInvocationCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useState } from "react";
22
import type { ToolUIPart } from "ai";
3-
import { Robot, CaretDown } from "@phosphor-icons/react";
3+
import { RobotIcon, CaretDownIcon } from "@phosphor-icons/react";
44
import { Button } from "@/components/button/Button";
55
import { Card } from "@/components/card/Card";
66
import { APPROVAL } from "@/shared";
@@ -53,15 +53,15 @@ export function ToolInvocationCard({
5353
<div
5454
className={`${needsConfirmation ? "bg-[#F48120]/10" : "bg-[#F48120]/5"} p-1.5 rounded-full flex-shrink-0`}
5555
>
56-
<Robot size={16} className="text-[#F48120]" />
56+
<RobotIcon size={16} className="text-[#F48120]" />
5757
</div>
5858
<h4 className="font-medium flex items-center gap-2 flex-1 text-left">
5959
{toolUIPart.type}
6060
{!needsConfirmation && toolUIPart.state === "output-available" && (
6161
<span className="text-xs text-[#F48120]/70">✓ Completed</span>
6262
)}
6363
</h4>
64-
<CaretDown
64+
<CaretDownIcon
6565
size={16}
6666
className={`text-muted-foreground transition-transform ${isExpanded ? "rotate-180" : ""}`}
6767
/>

0 commit comments

Comments
 (0)