File tree Expand file tree Collapse file tree 2 files changed +1
-46
lines changed
packages/demo/src/components Expand file tree Collapse file tree 2 files changed +1
-46
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 88 useDynamicRowHeight ,
99 useListCallbackRef ,
1010} from "react-window" ;
11- import { useTheme } from "@/components/theme-provider" ;
1211import { Label } from "@/components/ui/label" ;
1312import {
1413 Select ,
@@ -20,7 +19,6 @@ import {
2019import { Switch } from "@/components/ui/switch" ;
2120import { useLanguageServerEvent } from "@/lib/hooks" ;
2221import { cn } from "@/lib/utils" ;
23- import styles from "./logs.module.css" ;
2422
2523const 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 }
You can’t perform that action at this time.
0 commit comments