diff --git a/src/components/StoredScenesList.tsx b/src/components/StoredScenesList.tsx deleted file mode 100644 index 184fb5639..000000000 --- a/src/components/StoredScenesList.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import React from "react"; -import { PreviousScene } from "../scene/types"; -import { t } from "../i18n"; - -interface StoredScenesListProps { - scenes: PreviousScene[]; - currentId?: string; - onChange: (selectedId: string, k?: string) => {}; -} - -export function StoredScenesList({ - scenes, - currentId, - onChange, -}: StoredScenesListProps) { - return ( - - ); -} diff --git a/src/index.tsx b/src/index.tsx index 7026209fa..065e3d177 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -31,7 +31,6 @@ import { hasStroke, hasText, exportCanvas, - loadedScenes, loadScene, calculateScrollCenter, loadFromBlob, @@ -96,7 +95,6 @@ import { ExportDialog } from "./components/ExportDialog"; import { LanguageList } from "./components/LanguageList"; import { Point } from "roughjs/bin/geometry"; import { t, languages, setLanguage, getLanguage } from "./i18n"; -import { StoredScenesList } from "./components/StoredScenesList"; import { HintViewer } from "./components/HintViewer"; import { copyToAppClipboard, getClipboardContent } from "./clipboard"; @@ -318,22 +316,6 @@ const LayerUI = React.memo( ); } - function renderIdsDropdown() { - const scenes = loadedScenes(); - if (scenes.length === 0) { - return; - } - return ( - - actionManager.updater(await loadScene(id, k)) - } - /> - ); - } - return ( <> @@ -400,7 +382,6 @@ const LayerUI = React.memo( languages={languages} currentLanguage={language} /> - {renderIdsDropdown()} {appState.scrolledOutside && (