Skip to content

Commit e2de7e7

Browse files
committed
refactor: remove unused CSS module and clean up
1 parent cd7407f commit e2de7e7

File tree

2 files changed

+1
-46
lines changed

2 files changed

+1
-46
lines changed

packages/demo/src/components/logs.module.css

Lines changed: 0 additions & 39 deletions
This file was deleted.

packages/demo/src/components/logs.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
useDynamicRowHeight,
99
useListCallbackRef,
1010
} from "react-window";
11-
import { useTheme } from "@/components/theme-provider";
1211
import { Label } from "@/components/ui/label";
1312
import {
1413
Select,
@@ -20,7 +19,6 @@ import {
2019
import { Switch } from "@/components/ui/switch";
2120
import { useLanguageServerEvent } from "@/lib/hooks";
2221
import { cn } from "@/lib/utils";
23-
import styles from "./logs.module.css";
2422

2523
const textToColor = (text: string) => {
2624
const hash = text.split("").reduce((acc, char) => {
@@ -144,7 +142,6 @@ export const Logs: React.FC<React.ComponentProps<"div">> = ({
144142
className,
145143
...props
146144
}) => {
147-
const { computedTheme } = useTheme();
148145
const linesRef = useRef<LogMessage[]>([]);
149146
const [lines, setLines] = useRafState<LogMessage[]>([]);
150147
const [autoScrolling, setAutoScrolling] = useState(true);
@@ -213,10 +210,7 @@ export const Logs: React.FC<React.ComponentProps<"div">> = ({
213210
</div>
214211
<div className="flex-1 min-h-0">
215212
<List
216-
className={cn(
217-
"h-full",
218-
computedTheme === "dark" ? styles.logsDark : styles.logs,
219-
)}
213+
className="h-full"
220214
rowComponent={LogRow}
221215
rowCount={filteredLines.length}
222216
rowHeight={rowHeight}

0 commit comments

Comments
 (0)