Fix PR feedback: use antd Switch instead of Tremor in new file, fix typo

This commit is contained in:
Ryan Crabbe 2026-04-16 00:57:31 -07:00
parent 62100a6860
commit b5455d12c0
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View file

@ -1,8 +1,7 @@
import moment from "moment";
import { useEffect, useRef, useState } from "react";
import { SyncOutlined } from "@ant-design/icons";
import { Switch } from "@tremor/react";
import { Button } from "antd";
import { Button, Switch } from "antd";
import { QUICK_SELECT_OPTIONS } from "./constants";
import { getTimeRangeDisplay } from "./logs_utils";
import type { PaginatedResponse } from ".";
@ -152,7 +151,7 @@ export function LogsTableToolbar({
<div className="flex items-center gap-2">
<span className="text-sm font-medium text-gray-900">Live Tail</span>
<Switch color="green" checked={isLiveTail} defaultChecked={true} onChange={onIsLiveTailChange} />
<Switch checked={isLiveTail} defaultChecked={true} onChange={onIsLiveTailChange} />
</div>
<Button

View file

@ -218,7 +218,7 @@ export default function SpendLogsTable({
}) || [];
const handleRowClick = (log: LogEntry) => {
// Multi-call session row: open in the same right-side drawer (session mode)can
// Multi-call session row: open in the same right-side drawer (session mode)
if (log.session_id && (log.session_total_count || 1) > 1) {
setSelectedSessionId(log.session_id);
setSelectedLog(log);