summaryrefslogtreecommitdiff
path: root/extension/react-app/src/pages
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-25 17:30:12 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-25 17:30:12 -0700
commit2375ca5ff9b054d5128d5e4fc8507f925b25aebf (patch)
treee51759a2f1ef9d1fcf2d8a046e788dbd803a759d /extension/react-app/src/pages
parent509d6c22805675a21aeaa15187223ede705b3819 (diff)
downloadsncontinue-2375ca5ff9b054d5128d5e4fc8507f925b25aebf.tar.gz
sncontinue-2375ca5ff9b054d5128d5e4fc8507f925b25aebf.tar.bz2
sncontinue-2375ca5ff9b054d5128d5e4fc8507f925b25aebf.zip
updating ui to match config-py branch
Diffstat (limited to 'extension/react-app/src/pages')
-rw-r--r--extension/react-app/src/pages/gui.tsx43
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