diff --git a/apps/circuit-compiler/src/app/components/actions.tsx b/apps/circuit-compiler/src/app/components/actions.tsx index 2dca59f985..b555b5304f 100644 --- a/apps/circuit-compiler/src/app/components/actions.tsx +++ b/apps/circuit-compiler/src/app/components/actions.tsx @@ -1,11 +1,9 @@ -import { CompileBtn } from "./compileBtn"; -import { R1CSBtn } from "./r1csBtn"; +import { CompileBtn } from "./compileBtn" export function CircuitActions () { return ( -
+
-
) } \ No newline at end of file diff --git a/apps/circuit-compiler/src/app/components/compileBtn.tsx b/apps/circuit-compiler/src/app/components/compileBtn.tsx index 50eb6e1f13..4764a53f9d 100644 --- a/apps/circuit-compiler/src/app/components/compileBtn.tsx +++ b/apps/circuit-compiler/src/app/components/compileBtn.tsx @@ -20,7 +20,7 @@ export function CompileBtn () { } > - ) -} \ No newline at end of file diff --git a/apps/circuit-compiler/src/app/components/setupExports.tsx b/apps/circuit-compiler/src/app/components/setupExports.tsx index 7b472afd83..c14dc87eea 100644 --- a/apps/circuit-compiler/src/app/components/setupExports.tsx +++ b/apps/circuit-compiler/src/app/components/setupExports.tsx @@ -1,9 +1,10 @@ import { CustomTooltip } from "@remix-ui/helper" import { FormattedMessage } from "react-intl" +import { SetupExportsBtn } from "./setupExportsBtn" export function SetupExports () { return ( -
+
diff --git a/apps/circuit-compiler/src/app/components/setupExportsBtn.tsx b/apps/circuit-compiler/src/app/components/setupExportsBtn.tsx new file mode 100644 index 0000000000..029f32bb4e --- /dev/null +++ b/apps/circuit-compiler/src/app/components/setupExportsBtn.tsx @@ -0,0 +1,34 @@ +import { CustomTooltip, RenderIf, RenderIfNot } from "@remix-ui/helper" +import { useContext } from "react" +import { CircuitAppContext } from "../contexts" +import { FormattedMessage } from "react-intl" + +export function SetupExportsBtn () { + const { plugin, appState } = useContext(CircuitAppContext) + + return ( +
+ } + > +
+
+ + + +
+
+ + + ) +} \ No newline at end of file diff --git a/apps/circuit-compiler/src/app/components/toggler.tsx b/apps/circuit-compiler/src/app/components/toggler.tsx index dc62ffa881..abcd1b53c2 100644 --- a/apps/circuit-compiler/src/app/components/toggler.tsx +++ b/apps/circuit-compiler/src/app/components/toggler.tsx @@ -2,15 +2,15 @@ import { useState } from "react" import { FormattedMessage } from "react-intl" import { RenderIf, RenderIfNot } from "@remix-ui/helper" -export function Toggler ({ children, title, dataId }: { children: JSX.Element, title: string, dataId: string }) { - const [toggleExpander, setToggleExpander] = useState(false) +export function Toggler ({ children, title, dataId, show = false }: { children: JSX.Element, title: string, dataId: string, show?: boolean }) { + const [toggleExpander, setToggleExpander] = useState(show) const toggleConfigurations = () => { setToggleExpander(!toggleExpander) } return ( -
+