Skip to content

Commit

Permalink
remove custom color switch
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Sep 30, 2024
1 parent aea09fd commit 8881dd6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/frontend/src/WirevizPanel.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import '@mantine/core/styles.css';

import { IconDotsVertical, IconTrash, IconUpload } from '@tabler/icons-react';
import { ActionIcon, Alert, Anchor, Divider, Group, Image, MantineProvider, MantineTheme, Menu, Paper, SimpleGrid, Stack, Table, Text, Title, useMantineColorScheme } from "@mantine/core";
import { StrictMode, useEffect, useMemo } from "react";
import { ActionIcon, Alert, Anchor, Divider, Group, Image, MantineProvider, MantineTheme, Menu, Paper, SimpleGrid, Stack, Table, Text, Title } from "@mantine/core";
import { StrictMode, useMemo } from "react";
import { createRoot } from "react-dom/client";


Expand Down Expand Up @@ -36,12 +36,6 @@ function WirevizBomRow({row}: {row: any}) {

function WirevizPanel({context}: {context: any}) {

const { setColorScheme } = useMantineColorScheme();

useEffect(() => {
setColorScheme(context.colorScheme ?? 'light');
}, [context.colorScheme]);

const wirevizContext = useMemo(() => context?.context ?? {}, [context]);

const bomRows = useMemo(() => wirevizContext.wireviz_bom_data ?? [], [wirevizContext]);
Expand Down

0 comments on commit 8881dd6

Please sign in to comment.