Added Label comp and minor style fixes

This commit is contained in:
muzam1l
2022-04-08 14:41:08 +05:30
parent c219f7ea00
commit 2287e7babb
11 changed files with 38 additions and 44 deletions

View File

@@ -11,7 +11,7 @@ import {
DialogClose,
DialogTrigger,
} from "./Dialog";
import { Input } from "./Input";
import { Input, Label } from "./Input";
import {
Controller,
SubmitHandler,
@@ -111,7 +111,7 @@ export const SetHookDialog: React.FC<{ account: IAccount }> = ({ account }) => {
<DialogDescription as="div">
<Stack css={{ width: "100%", flex: 1 }}>
<Box css={{ width: "100%" }}>
<label>Invoke on transactions</label>
<Label>Invoke on transactions</Label>
<Controller
name="Invoke"
control={control}
@@ -130,9 +130,9 @@ export const SetHookDialog: React.FC<{ account: IAccount }> = ({ account }) => {
/>
</Box>
<Box css={{ width: "100%" }}>
<label style={{ marginBottom: "10px", display: "block" }}>
<Label css={{mb: '$2'}}>
Hook parameters
</label>
</Label>
<Stack>
{fields.map((field, index) => (
<Stack key={field.id}>