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