mirror of
https://github.com/Sevichecc/raycast-akkoma-extension.git
synced 2025-06-17 06:19:13 +08:00
fix: cw setting could not store
This commit is contained in:
parent
bda1804b6a
commit
57cd5db168
1 changed files with 3 additions and 3 deletions
|
@ -75,8 +75,8 @@ export default function SimpleCommand(props: CommandProps) {
|
|||
}
|
||||
};
|
||||
|
||||
const handleCw = () => {
|
||||
setShowCw(!showCw);
|
||||
const handleCw = (value:boolean) => {
|
||||
setShowCw(value);
|
||||
if (cwRef.current) {
|
||||
cwRef.current.focus();
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ export default function SimpleCommand(props: CommandProps) {
|
|||
</ActionPanel>
|
||||
}
|
||||
>
|
||||
{fqn && <Form.Description title="Account" text={fqn} />}
|
||||
<Form.Description title="Account" text={fqn} />
|
||||
{showCw && (
|
||||
<Form.TextField
|
||||
id="spoiler_text"
|
||||
|
|
Loading…
Reference in a new issue