) => {
+ savePreserveLogs((event.target as HTMLInputElement).checked);
+ // Storage.setItem(
+ // "preserveLogs",
+ // (event.target as HTMLInputElement).checked
+ // );
+ },
+ []
+ );
+
return (
+
>;
+ preserveLogs?: boolean;
+ savePreserveLogs?: React.Dispatch>;
}
export const EvaluationsContext = React.createContext({});
diff --git a/src/panel/libs/TransformationsContext.ts b/src/panel/libs/TransformationsContext.ts
index ad996cb..f9ddba4 100644
--- a/src/panel/libs/TransformationsContext.ts
+++ b/src/panel/libs/TransformationsContext.ts
@@ -4,6 +4,8 @@ import { Transformation } from "../../shared/interfaces";
export interface ContextOfTransformations {
transformations?: Transformation[];
setTransformations?: React.Dispatch>;
+ preserveLogs?: boolean;
+ savePreserveLogs?: React.Dispatch>;
}
export const TransformationsContext = React.createContext<