Compare commits
4 Commits
feat/tab-o
...
feat/defau
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5a11f83fea | ||
|
|
ea977816a4 | ||
|
|
d41e263942 | ||
|
|
c7e4cd7c92 |
@@ -1,4 +1,4 @@
|
|||||||
import { FC, useCallback, useState } from "react";
|
import { FC, useCallback, useEffect, useState } from "react";
|
||||||
import Container from "../Container";
|
import Container from "../Container";
|
||||||
import Flex from "../Flex";
|
import Flex from "../Flex";
|
||||||
import Input from "../Input";
|
import Input from "../Input";
|
||||||
@@ -110,6 +110,16 @@ export const TxUI: FC<UIProps> = ({
|
|||||||
k => !specialFields.includes(k)
|
k => !specialFields.includes(k)
|
||||||
) as [keyof TxFields];
|
) as [keyof TxFields];
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const defaultOption = transactionsOptions.find(
|
||||||
|
tt => tt.value === "Payment"
|
||||||
|
);
|
||||||
|
if (defaultOption) {
|
||||||
|
handleChangeTxType(defaultOption);
|
||||||
|
}
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container
|
<Container
|
||||||
css={{
|
css={{
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { Label } from "@radix-ui/react-label";
|
import { Label } from "@radix-ui/react-label";
|
||||||
import { Switch, SwitchThumb } from "../../components/Switch";
|
|
||||||
import type { NextPage } from "next";
|
import type { NextPage } from "next";
|
||||||
import dynamic from "next/dynamic";
|
import dynamic from "next/dynamic";
|
||||||
import { Gear, Play } from "phosphor-react";
|
import { Gear, Play } from "phosphor-react";
|
||||||
@@ -141,59 +140,6 @@ const CompilerSettings = () => {
|
|||||||
</Button>
|
</Button>
|
||||||
</ButtonGroup>
|
</ButtonGroup>
|
||||||
</Box>
|
</Box>
|
||||||
<Box css={{ flexDirection: "column" }}>
|
|
||||||
<Label
|
|
||||||
style={{
|
|
||||||
flexDirection: "row",
|
|
||||||
display: "flex",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Clean WASM (experimental){" "}
|
|
||||||
<Popover
|
|
||||||
css={{
|
|
||||||
maxWidth: "240px",
|
|
||||||
lineHeight: "1.3",
|
|
||||||
a: {
|
|
||||||
color: "$purple11",
|
|
||||||
},
|
|
||||||
".dark &": {
|
|
||||||
backgroundColor: "$black !important",
|
|
||||||
|
|
||||||
".arrow": {
|
|
||||||
fill: "$colors$black",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
content="Cleaner removes unwanted compiler-provided exports and functions from a wasm binary to make it (more) suitable for being used as a Hook"
|
|
||||||
>
|
|
||||||
<Flex
|
|
||||||
css={{
|
|
||||||
position: "relative",
|
|
||||||
top: "-1px",
|
|
||||||
mx: "$1",
|
|
||||||
backgroundColor: "$mauve8",
|
|
||||||
borderRadius: "$full",
|
|
||||||
cursor: "pointer",
|
|
||||||
width: "16px",
|
|
||||||
height: "16px",
|
|
||||||
alignItems: "center",
|
|
||||||
justifyContent: "center",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
?
|
|
||||||
</Flex>
|
|
||||||
</Popover>
|
|
||||||
</Label>
|
|
||||||
<Switch
|
|
||||||
css={{ mt: "$2" }}
|
|
||||||
checked={snap.compileOptions.strip}
|
|
||||||
onCheckedChange={(checked) => {
|
|
||||||
state.compileOptions.strip = checked;
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<SwitchThumb />
|
|
||||||
</Switch>
|
|
||||||
</Box>
|
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user