diff options
author | Ty Dunn <ty@tydunn.com> | 2023-07-25 19:12:41 -0700 |
---|---|---|
committer | Ty Dunn <ty@tydunn.com> | 2023-07-25 19:12:41 -0700 |
commit | 173b1a766598c3ccf9a9aa9bf87ea25e6de67e5b (patch) | |
tree | fa6b74855e69f86bf018a280e4b82965154170b9 /extension/react-app/src/pages/gui.tsx | |
parent | 47c9bfb963022a219ab9b72cb0561d2fd0c28552 (diff) | |
parent | 4258ba75380e0c0c43e81151f2a9e530c20448bb (diff) | |
download | sncontinue-173b1a766598c3ccf9a9aa9bf87ea25e6de67e5b.tar.gz sncontinue-173b1a766598c3ccf9a9aa9bf87ea25e6de67e5b.tar.bz2 sncontinue-173b1a766598c3ccf9a9aa9bf87ea25e6de67e5b.zip |
Merge branch 'main' of github.com:continuedev/continue
Diffstat (limited to 'extension/react-app/src/pages/gui.tsx')
-rw-r--r-- | extension/react-app/src/pages/gui.tsx | 43 |
1 files changed, 12 insertions, 31 deletions
diff --git a/extension/react-app/src/pages/gui.tsx b/extension/react-app/src/pages/gui.tsx index 49f41dcf..70031d40 100644 --- a/extension/react-app/src/pages/gui.tsx +++ b/extension/react-app/src/pages/gui.tsx @@ -64,6 +64,9 @@ function GUI(props: GUIProps) { const vscMachineId = useSelector( (state: RootStore) => state.config.vscMachineId ); + const vscMediaUrl = useSelector( + (state: RootStore) => state.config.vscMediaUrl + ); const [dataSwitchChecked, setDataSwitchChecked] = useState(false); const dataSwitchOn = useSelector( (state: RootStore) => state.config.dataSwitchOn @@ -395,37 +398,15 @@ function GUI(props: GUIProps) { </b> </div> <Footer dataSwitchChecked={dataSwitchChecked}> - <div - style={{ - display: "flex", - gap: "4px", - marginRight: "auto", - alignItems: "center", - }} - onMouseEnter={() => { - setShowDataSharingInfo(true); - }} - onMouseLeave={() => { - setShowDataSharingInfo(false); - }} - > - <ReactSwitch - height={20} - handleDiameter={20} - width={40} - onChange={() => { - posthog?.capture("data_switch_toggled", { - vscMachineId: vscMachineId, - dataSwitchChecked: !dataSwitchChecked, - }); - postVscMessage("toggleDataSwitch", { on: !dataSwitchChecked }); - setDataSwitchChecked((prev) => !prev); - }} - onColor="#12887a" - checked={dataSwitchChecked} - /> - <span style={{ cursor: "help", fontSize: "14px" }}>Collect Data</span> - </div> + {vscMediaUrl && ( + <a + href="https://github.com/continuedev/continue" + style={{ marginRight: "auto" }} + > + <img src={`${vscMediaUrl}/continue-dev-square.png`} width="22px" /> + </a> + )} + {/* <p style={{ margin: "0", marginRight: "auto" }}>Continue</p> */} <HeaderButtonWithText onClick={() => { // Show the dialog |