refactor: move title to label

This commit is contained in:
sevichecc 2023-04-21 02:22:30 +08:00
parent 68a73f58d6
commit 783d78e3da
Signed by untrusted user who does not match committer: SevicheCC
GPG key ID: C577000000000000

View file

@ -146,13 +146,12 @@ export default function SimpleCommand(props: CommandProps) {
{props.children}
<Form.Checkbox
id="markdown"
title="Markdown"
label=""
label="Markdown"
value={state.isMarkdown}
onChange={(value) => setState((prevState) => ({ ...prevState, isMarkdown: value }))}
storeValue
/>
<Form.Checkbox id="sensitive" title="Sensitive" label="" value={state.sensitive} onChange={handleCw} storeValue />
<Form.Checkbox id="sensitive" label="Sensitive" value={state.sensitive} onChange={handleCw} storeValue />
</Form>
);
}