From c0799a92d3588cefa7c88a18452811d0153c685b Mon Sep 17 00:00:00 2001
From: Nate Sesti <sestinj@gmail.com>
Date: Mon, 24 Jul 2023 23:12:49 -0700
Subject: tweaks

---
 extension/react-app/src/pages/gui.tsx | 58 ++++++++---------------------------
 1 file changed, 12 insertions(+), 46 deletions(-)

(limited to 'extension/react-app/src/pages/gui.tsx')

diff --git a/extension/react-app/src/pages/gui.tsx b/extension/react-app/src/pages/gui.tsx
index d7efc288..76194db7 100644
--- a/extension/react-app/src/pages/gui.tsx
+++ b/extension/react-app/src/pages/gui.tsx
@@ -116,6 +116,9 @@ function GUI(props: GUIProps) {
     current_index: 3,
   } as any);
 
+  const vscMediaUrl = useSelector(
+    (state: RootStore) => state.config.vscMediaUrl
+  );
   const [showFeedbackDialog, setShowFeedbackDialog] = useState(false);
   const [feedbackDialogMessage, setFeedbackDialogMessage] = useState("");
   const [feedbackEntryOn, setFeedbackEntryOn] = useState(true);
@@ -415,52 +418,15 @@ function GUI(props: GUIProps) {
         {bottomMessage}
       </div>
       <Footer dataSwitchChecked={dataSwitchChecked}>
-        {/* <div
-          style={{
-            display: "flex",
-            gap: "4px",
-            marginRight: "auto",
-            alignItems: "center",
-          }}
-          onMouseEnter={() => {
-            dispatch(
-              setBottomMessage(
-                <>
-                  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>
-                    {dataSwitchChecked
-                      ? "👍 Data is being collected"
-                      : "👎 No data is being collected"}
-                  </b>
-                </>
-              )
-            );
-          }}
-          onMouseLeave={() => {
-            dispatch(setBottomMessage(undefined));
-          }}
-        >
-          <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={{ margin: "0", marginRight: "auto" }}
+          >
+            <img src={`${vscMediaUrl}/continue-dev-square.png`} width="22px" />
+            <p style={{ margin: "0" }}>Continue</p>
+          </a>
+        )}
         <HeaderButtonWithText
           onClick={() => {
             // Show the dialog
-- 
cgit v1.2.3-70-g09d2

