diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-30 02:40:34 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-30 02:40:34 -0700 |
commit | b752b25481c8f2e2be26ce7db1f80d15dfc339d0 (patch) | |
tree | 70c7ea246a288ef1e99bc5739b8bafd9c96f4763 /extension/react-app/src/tabs | |
parent | b270153bdd1053b64712e193fd1b79b436b8a8bc (diff) | |
download | sncontinue-b752b25481c8f2e2be26ce7db1f80d15dfc339d0.tar.gz sncontinue-b752b25481c8f2e2be26ce7db1f80d15dfc339d0.tar.bz2 sncontinue-b752b25481c8f2e2be26ce7db1f80d15dfc339d0.zip |
fixed websockets issue
Diffstat (limited to 'extension/react-app/src/tabs')
-rw-r--r-- | extension/react-app/src/tabs/gui.tsx | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/extension/react-app/src/tabs/gui.tsx b/extension/react-app/src/tabs/gui.tsx index 3e0fce6d..39925fc5 100644 --- a/extension/react-app/src/tabs/gui.tsx +++ b/extension/react-app/src/tabs/gui.tsx @@ -58,13 +58,13 @@ function GUI(props: GUIProps) { const [dataSwitchChecked, setDataSwitchChecked] = useState(false); const dataSwitchOn = useSelector( (state: RootStore) => state.config.dataSwitchOn - ) + ); useEffect(() => { if (typeof dataSwitchOn !== "undefined") { - setDataSwitchChecked(dataSwitchOn) + setDataSwitchChecked(dataSwitchOn); } - }, [dataSwitchOn]) + }, [dataSwitchOn]); const [usingFastModel, setUsingFastModel] = useState(false); const [waitingForSteps, setWaitingForSteps] = useState(false); @@ -548,9 +548,9 @@ function GUI(props: GUIProps) { }} hidden={!showDataSharingInfo} > - By turning on this switch, you will begin collecting accepted and - rejected suggestions in .continue/suggestions.json. This data is - stored locally on your machine and not sent anywhere. + By turning on this switch, you will begin collecting accepted and + rejected suggestions in .continue/suggestions.json. This data is stored + locally on your machine and not sent anywhere. <br /> <br /> <b> @@ -583,15 +583,13 @@ function GUI(props: GUIProps) { vscMachineId: vscMachineId, dataSwitchChecked: !dataSwitchChecked, }); - postVscMessage("toggleDataSwitch", {on: !dataSwitchChecked}) + postVscMessage("toggleDataSwitch", { on: !dataSwitchChecked }); setDataSwitchChecked((prev) => !prev); }} onColor="#12887a" checked={dataSwitchChecked} /> - <span style={{ cursor: "help", fontSize: "14px" }}> - Collect Data - </span> + <span style={{ cursor: "help", fontSize: "14px" }}>Collect Data</span> </div> <HeaderButtonWithText onClick={() => { @@ -616,7 +614,10 @@ function GUI(props: GUIProps) { > <Trash size="1.6em" /> </HeaderButtonWithText> - <a href="https://continue.dev/docs/how-to-use-continue" className="no-underline"> + <a + href="https://continue.dev/docs/how-to-use-continue" + className="no-underline" + > <HeaderButtonWithText text="Docs"> <BookOpen size="1.6em" /> </HeaderButtonWithText> |