From c144ba9e4cd3e8fdbc7b03bdaf758d6dfc970213 Mon Sep 17 00:00:00 2001 From: maxichrome Date: Sat, 28 May 2022 04:44:34 -0500 Subject: [PATCH] fix device & file light theme --- packages/interface/src/components/device/Device.tsx | 10 ++++------ packages/interface/src/components/file/FileItem.tsx | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/interface/src/components/device/Device.tsx b/packages/interface/src/components/device/Device.tsx index 7d1fce831..0490533ce 100644 --- a/packages/interface/src/components/device/Device.tsx +++ b/packages/interface/src/components/device/Device.tsx @@ -6,7 +6,6 @@ import React, { useState } from 'react'; import { Rings } from 'react-loading-icons'; import FileItem from '../file/FileItem'; -import { useMenu } from '../layout/MenuOverlay'; import ProgressBar from '../primitive/ProgressBar'; export interface DeviceProps { @@ -19,7 +18,6 @@ export interface DeviceProps { export function Device(props: DeviceProps) { const [selectedFile, setSelectedFile] = useState(null); - const menu = useMenu(); function handleSelect(key: string) { if (selectedFile === key) setSelectedFile(null); @@ -27,7 +25,7 @@ export function Device(props: DeviceProps) { } return ( -
+
{props.type === 'phone' && } @@ -36,17 +34,17 @@ export function Device(props: DeviceProps) { {props.type === 'server' && }

{props.name}

- + P2P
- + {props.size}
{props.runningJob && ( -
+