From 6741a0bb0fb5006bd99be81187da90a120ab5c21 Mon Sep 17 00:00:00 2001 From: Matt Rothenberg Date: Thu, 4 Dec 2025 10:33:03 -0500 Subject: [PATCH] Update Phosphor Icons to use new Icon-suffixed imports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/app.tsx | 26 +++++++++---------- src/components/button/RefreshButton.tsx | 4 +-- src/components/dropdown/DropdownMenu.tsx | 4 +-- src/components/modal/Modal.tsx | 4 +-- src/components/orbit-site/ThemeSelector.tsx | 6 ++--- .../ToolInvocationCard.tsx | 6 ++--- 6 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/app.tsx b/src/app.tsx index fd1bcda..696842e 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -17,13 +17,13 @@ import { ToolInvocationCard } from "@/components/tool-invocation-card/ToolInvoca // Icon imports import { - Bug, - Moon, - Robot, - Sun, - Trash, - PaperPlaneTilt, - Stop + BugIcon, + MoonIcon, + RobotIcon, + SunIcon, + TrashIcon, + PaperPlaneTiltIcon, + StopIcon } from "@phosphor-icons/react"; // List of tools that require human confirmation @@ -163,7 +163,7 @@ export default function Chat() {
- + - {theme === "dark" ? : } + {theme === "dark" ? : }
@@ -199,7 +199,7 @@ export default function Chat() {
- +

Welcome to AI Chat

@@ -392,7 +392,7 @@ export default function Chat() { 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" aria-label="Stop generation" > - + ) : ( )}

diff --git a/src/components/button/RefreshButton.tsx b/src/components/button/RefreshButton.tsx index 9e9e78f..8d84f64 100644 --- a/src/components/button/RefreshButton.tsx +++ b/src/components/button/RefreshButton.tsx @@ -1,11 +1,11 @@ import { Button } from "@/components/button/Button"; import type { ButtonProps } from "@/components/button/Button"; import { cn } from "@/lib/utils"; -import { ArrowsClockwise } from "@phosphor-icons/react"; +import { ArrowsClockwiseIcon } from "@phosphor-icons/react"; export const RefreshButton = ({ ...props }: ButtonProps) => (
diff --git a/src/components/orbit-site/ThemeSelector.tsx b/src/components/orbit-site/ThemeSelector.tsx index e48ad79..e2efa2f 100644 --- a/src/components/orbit-site/ThemeSelector.tsx +++ b/src/components/orbit-site/ThemeSelector.tsx @@ -1,6 +1,6 @@ import useTheme from "@/hooks/useTheme"; import { cn } from "@/lib/utils"; -import { Moon, Sun } from "@phosphor-icons/react"; +import { MoonIcon, SunIcon } from "@phosphor-icons/react"; import { useState } from "react"; const ThemeSelector = () => { @@ -18,13 +18,13 @@ const ThemeSelector = () => { className="flex size-8 cursor-pointer items-center justify-center rounded-md hover:bg-neutral-200/60 dark:hover:bg-neutral-900" onClick={() => toggleTheme()} > - - - +

{toolUIPart.type} @@ -61,7 +61,7 @@ export function ToolInvocationCard({ ✓ Completed )}

-