From 57cd5db168906ba283a06d5ee6b373df520426c9 Mon Sep 17 00:00:00 2001 From: sevichecc <91365763+Sevichecc@users.noreply.github.com> Date: Sat, 15 Apr 2023 04:49:59 +0800 Subject: [PATCH] fix: cw setting could not store --- src/simple-status.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/simple-status.tsx b/src/simple-status.tsx index 3616643..7fb3186 100644 --- a/src/simple-status.tsx +++ b/src/simple-status.tsx @@ -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) { } > - {fqn && } + {showCw && (