Skip to content

Commit c5ce005

Browse files
committed
🤖 fix: Remove unused imports and fix linting issues
- Removed unused cn imports from App.tsx, ErrorMessage.tsx, CostsTab.tsx - Fixed nullish coalescing operator in StreamingBarrier.tsx - All linting checks now passing
1 parent 6778c48 commit c5ce005

File tree

5 files changed

+2
-5
lines changed

5 files changed

+2
-5
lines changed

src/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { useState, useEffect, useCallback, useRef } from "react";
2-
import { cn } from "@/lib/utils";
32
import "./styles/globals.css";
43
import type { ProjectConfig } from "./config";
54
import type { WorkspaceSelection } from "./components/ProjectSidebar";

src/components/ErrorMessage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from "react";
2-
import { cn } from "@/lib/utils";
32

43
interface ErrorMessageProps {
54
title?: string;

src/components/Messages/ChatBarrier/StreamingBarrier.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const StreamingBarrier: React.FC<StreamingBarrierProps> = ({
1717
tps,
1818
}) => {
1919
return (
20-
<div className={`flex items-center justify-between gap-4 ${className || ""}`}>
20+
<div className={`flex items-center justify-between gap-4 ${className ?? ""}`}>
2121
<div className="flex items-center gap-2 flex-1">
2222
<BaseBarrier text={statusText} color="var(--color-assistant-border)" animate />
2323
{tokenCount !== undefined && (

src/components/RightSidebar/CostsTab.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { use1MContext } from "@/hooks/use1MContext";
88
import { supports1MContext } from "@/utils/ai/models";
99
import { TOKEN_COMPONENT_COLORS } from "@/utils/tokens/tokenMeterUtils";
1010
import { ConsumerBreakdown } from "./ConsumerBreakdown";
11-
import { cn } from "@/lib/utils";
1211

1312
// Format token display - show k for thousands with 1 decimal
1413
const formatTokens = (tokens: number) =>

src/components/ThinkingSlider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const getTextStyle = (n: number) => {
4646
};
4747
};
4848

49-
const getSliderStyles = (value: number, isHover: boolean = false) => {
49+
const getSliderStyles = (value: number, isHover = false) => {
5050
const effectiveValue = isHover ? Math.min(value + 1, 3) : value;
5151
const thumbBg = value === 0 ? "#606060" : `hsl(271 76% ${53 + value * 5}%)`;
5252

0 commit comments

Comments
 (0)