From b854dd750ddc71ae4b4380bd4f8e6f240cc949a9 Mon Sep 17 00:00:00 2001 From: stevewang Date: Tue, 2 Jun 2020 14:39:24 +0800 Subject: [PATCH] fix(): remove useless code and comments --- src/panel/components/EvaluationsPanel.tsx | 7 +------ src/panel/components/TransformationsPanel.tsx | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/panel/components/EvaluationsPanel.tsx b/src/panel/components/EvaluationsPanel.tsx index d503d35..14d3d4a 100644 --- a/src/panel/components/EvaluationsPanel.tsx +++ b/src/panel/components/EvaluationsPanel.tsx @@ -10,7 +10,6 @@ import classNames from "classnames"; import { PanelSelector } from "./PanelSelector"; import { useEvaluationsContext } from "../libs/EvaluationsContext"; import { PropList, PropItem } from "./PropList"; -import { Storage } from "../libs/Storage"; export function EvaluationsPanel(): React.ReactElement { const { @@ -52,12 +51,8 @@ export function EvaluationsPanel(): React.ReactElement { const handleToggleLogs = React.useCallback( (event: React.FormEvent) => { savePreserveLogs((event.target as HTMLInputElement).checked); - // Storage.setItem( - // "preserveLogs", - // (event.target as HTMLInputElement).checked - // ); }, - [] + [savePreserveLogs] ); return ( diff --git a/src/panel/components/TransformationsPanel.tsx b/src/panel/components/TransformationsPanel.tsx index 3788483..c1df036 100644 --- a/src/panel/components/TransformationsPanel.tsx +++ b/src/panel/components/TransformationsPanel.tsx @@ -4,7 +4,6 @@ import classNames from "classnames"; import { PanelSelector } from "./PanelSelector"; import { useTransformationsContext } from "../libs/TransformationsContext"; import { PropItem } from "./PropList"; -import { Storage } from "../libs/Storage"; export function TransformationsPanel(): React.ReactElement { const { @@ -29,12 +28,8 @@ export function TransformationsPanel(): React.ReactElement { const handleToggleLogs = React.useCallback( (event: React.FormEvent) => { savePreserveLogs((event.target as HTMLInputElement).checked); - // Storage.setItem( - // "preserveLogs", - // (event.target as HTMLInputElement).checked - // ); }, - [] + [savePreserveLogs] ); return (