Skip to content

Commit 31cb04f

Browse files
committed
Add button to disable auto filter
1 parent 28ff0f5 commit 31cb04f

File tree

7 files changed

+286
-18
lines changed

7 files changed

+286
-18
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ flamegraph.svg
55
.z3-trace
66
hakim_log*
77
node_modules
8+
ignore

Cargo.lock

+188-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front/src/components/proof/Toolbar.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import css from "./toolbar.module.css";
66
import logo from "../../logo.png"
77
import { flip, offset, shift, useFloating } from '@floating-ui/react-dom';
88
import { getDevState } from "../../dev_mode";
9+
import { useAutoProofState } from "../../dev_mode/auto_proof_state";
910

1011
export const ToolButton = ({ label, onClick }: { label: string, onClick: any }) => {
1112
return (
@@ -111,10 +112,11 @@ const AutoProofButton = () => {
111112
};
112113

113114
export const Toolbar = () => {
115+
const autoState = useAutoProofState();
114116
return (
115117
<div className={css.toolContain}>
116118
<ToolButton onClick={newAssert} label={g`new_assertion`} />
117-
<AutoProofButton />
119+
{autoState && <AutoProofButton />}
118120
{
119121
getDevState() === "debug" && <ToolButton onClick={() => {
120122
const tactic = window.prompt(g`enter_tactic`);

0 commit comments

Comments
 (0)