From 9490a3a616f526ee7b495abab27af111df16bbb4 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Tue, 5 Mar 2024 15:14:38 +0000
Subject: extension: Allow deleting and opening newly saved bookmarks

---
 packages/browser-extension/src/App.tsx | 40 ----------------------------------
 1 file changed, 40 deletions(-)
 delete mode 100644 packages/browser-extension/src/App.tsx

(limited to 'packages/browser-extension/src/App.tsx')

diff --git a/packages/browser-extension/src/App.tsx b/packages/browser-extension/src/App.tsx
deleted file mode 100644
index 279c8b7a..00000000
--- a/packages/browser-extension/src/App.tsx
+++ /dev/null
@@ -1,40 +0,0 @@
-import { RefreshCw, Settings, X } from "lucide-react";
-import SavePage from "./SavePage";
-import usePluginSettings from "./utils/settings";
-import { useNavigate } from "react-router-dom";
-
-function App() {
-  const navigate = useNavigate();
-  const [settings, _1, _2, _3, isInit] = usePluginSettings();
-
-  if (!isInit) {
-    return <div className="p-4">Loading ... </div>;
-  }
-
-  if (!settings.apiKey || !settings.address) {
-    navigate("/notconfigured");
-    return;
-  }
-
-  return (
-    <div className="flex flex-col space-y-2">
-      <SavePage />
-      <hr />
-      <div className="flex justify-end space-x-3">
-        {process.env.NODE_ENV == "development" && (
-          <button onClick={() => navigate(0)}>
-            <RefreshCw className="w-4" />
-          </button>
-        )}
-        <button onClick={() => navigate("/options")}>
-          <Settings className="w-4" />
-        </button>
-        <button onClick={() => window.close()}>
-          <X className="w-4" />
-        </button>
-      </div>
-    </div>
-  );
-}
-
-export default App;
-- 
cgit v1.2.3-70-g09d2

