@@ -114,7 +115,7 @@ const IndexOptions = () => {
<>
-
+
Shortcuts
({shortcuts.length})
diff --git a/extension/src/popup.tsx b/extension/src/popup.tsx
index 559523f..7b9d3fc 100644
--- a/extension/src/popup.tsx
+++ b/extension/src/popup.tsx
@@ -1,11 +1,12 @@
-import { Button } from "@mui/joy";
+import { Button, Divider, IconButton } from "@mui/joy";
import { useStorage } from "@plasmohq/storage/hook";
import { Toaster } from "react-hot-toast";
+import CreateShortcutsButton from "@/components/CreateShortcutsButton";
+import Icon from "@/components/Icon";
+import Logo from "@/components/Logo";
+import PullShortcutsButton from "@/components/PullShortcutsButton";
+import ShortcutsContainer from "@/components/ShortcutsContainer";
import { Shortcut } from "@/types/proto/api/v2/shortcut_service_pb";
-import CreateShortcutsButton from "./components/CreateShortcutsButton";
-import Icon from "./components/Icon";
-import PullShortcutsButton from "./components/PullShortcutsButton";
-import ShortcutsContainer from "./components/ShortcutsContainer";
import "./style.css";
const IndexPopup = () => {
@@ -20,6 +21,7 @@ const IndexPopup = () => {
const handleRefreshButtonClick = () => {
chrome.runtime.reload();
+ chrome.browserAction.setPopup({ popup: "" });
};
return (
@@ -27,7 +29,7 @@ const IndexPopup = () => {
-
+
Slash
{isInitialized && (
<>
@@ -52,18 +54,15 @@ const IndexPopup = () => {
)}
-