diff --git a/src/App.tsx b/src/App.tsx index 8396ac7..09499dc 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -95,7 +95,6 @@ export default function App() { const [priorModalOpen, setPriorModalOpen] = useState(false); const [priorData, setPriorData] = useState(null); const [settingsModalOpen, setSettingsModalOpen] = useState(false); - const [sourcePickerOpen, setSourcePickerOpen] = useState(false); const menuActionRef = useRef<(action: string) => void>(() => undefined); const rows = useMemo(() => [...files, ...websites], [files, websites]); @@ -222,18 +221,6 @@ export default function App() { await addFilesByPath(paths as string[], false); }; - const onAddFolder = async () => { - const selection = await open({ directory: true, title: "Select folder" }); - if (!selection) return; - const paths = Array.isArray(selection) ? selection : [selection]; - await addFilesByPath(paths as string[], true); - }; - - const chooseSourcePicker = (mode: "files" | "folder") => { - setSourcePickerOpen(false); - void (mode === "files" ? onAddFiles() : onAddFolder()); - }; - const onAddWebsite = () => { const url = window.prompt("Enter a URL (starting with http:// or https://):"); if (!url) return; @@ -709,7 +696,7 @@ export default function App() {
- +
@@ -765,36 +752,6 @@ export default function App() { - {sourcePickerOpen && ( -
{ - if (event.target === event.currentTarget) { - setSourcePickerOpen(false); - } - }} - > -
-
-

Add Source

- -
-
- - -
-
-
- )} - {sessionModalOpen && (