fix: biome formatting and lint fixes in App.tsx and TokenUsagePage.tsx

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dave
2026-03-19 16:14:44 +00:00
parent 932325744c
commit 662e00f94a
2 changed files with 8 additions and 4 deletions

View File

@@ -1,9 +1,9 @@
import * as React from "react"; import * as React from "react";
import { api } from "./api/client"; import { api } from "./api/client";
import { Chat } from "./components/Chat"; import { Chat } from "./components/Chat";
import { TokenUsagePage } from "./components/TokenUsagePage";
import { SelectionScreen } from "./components/selection/SelectionScreen"; import { SelectionScreen } from "./components/selection/SelectionScreen";
import { usePathCompletion } from "./components/selection/usePathCompletion"; import { usePathCompletion } from "./components/selection/usePathCompletion";
import { TokenUsagePage } from "./components/TokenUsagePage";
import "./App.css"; import "./App.css";
type AppView = "chat" | "token-usage"; type AppView = "chat" | "token-usage";

View File

@@ -1,6 +1,6 @@
import * as React from "react"; import * as React from "react";
import { api } from "../api/client";
import type { TokenUsageRecord } from "../api/client"; import type { TokenUsageRecord } from "../api/client";
import { api } from "../api/client";
type SortKey = type SortKey =
| "timestamp" | "timestamp"
@@ -105,7 +105,7 @@ export function TokenUsagePage({ projectPath }: TokenUsagePageProps) {
setError(e instanceof Error ? e.message : "Failed to load token usage"), setError(e instanceof Error ? e.message : "Failed to load token usage"),
) )
.finally(() => setLoading(false)); .finally(() => setLoading(false));
}, [projectPath]); }, []);
function handleSort(key: SortKey) { function handleSort(key: SortKey) {
if (key === sortKey) { if (key === sortKey) {
@@ -397,7 +397,11 @@ function SummaryCard({
label, label,
value, value,
highlight = false, highlight = false,
}: { label: string; value: string; highlight?: boolean }) { }: {
label: string;
value: string;
highlight?: boolean;
}) {
return ( return (
<div <div
style={{ style={{