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:
@@ -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";
|
||||||
|
|||||||
@@ -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={{
|
||||||
|
|||||||
Reference in New Issue
Block a user