Skip to content

Commit

Permalink
fix(): remove useless code and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
weareoutman committed Jun 2, 2020
1 parent cf95d7b commit 5780cb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions src/panel/components/EvaluationsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -52,12 +51,8 @@ export function EvaluationsPanel(): React.ReactElement {
const handleToggleLogs = React.useCallback(
(event: React.FormEvent<HTMLInputElement>) => {
savePreserveLogs((event.target as HTMLInputElement).checked);
// Storage.setItem(
// "preserveLogs",
// (event.target as HTMLInputElement).checked
// );
},
[]
[savePreserveLogs]
);

return (
Expand Down
7 changes: 1 addition & 6 deletions src/panel/components/TransformationsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -29,12 +28,8 @@ export function TransformationsPanel(): React.ReactElement {
const handleToggleLogs = React.useCallback(
(event: React.FormEvent<HTMLInputElement>) => {
savePreserveLogs((event.target as HTMLInputElement).checked);
// Storage.setItem(
// "preserveLogs",
// (event.target as HTMLInputElement).checked
// );
},
[]
[savePreserveLogs]
);

return (
Expand Down

0 comments on commit 5780cb4

Please sign in to comment.