+
diff --git a/ts/deckoptions/index.ts b/ts/deckoptions/index.ts
index fd622204f..8cf110c8c 100644
--- a/ts/deckoptions/index.ts
+++ b/ts/deckoptions/index.ts
@@ -14,7 +14,7 @@ import SpinBoxFloat from "./SpinBoxFloat.svelte";
import EnumSelector from "./EnumSelector.svelte";
import CheckBox from "./CheckBox.svelte";
-import { nightModeKey } from "components/contextKeys";
+import { nightModeKey, modalsKey } from "components/contextKeys";
export async function deckOptions(
target: HTMLDivElement,
@@ -35,6 +35,9 @@ export async function deckOptions(
const context = new Map();
context.set(nightModeKey, nightMode);
+ const modals = new Map();
+ context.set(modalsKey, modals);
+
const state = new DeckOptionsState(deckId, info);
return new DeckOptionsPage({
target,
diff --git a/ts/deckoptions/textInputModal.ts b/ts/deckoptions/textInputModal.ts
deleted file mode 100644
index 2e1b26e1a..000000000
--- a/ts/deckoptions/textInputModal.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright: Ankitects Pty Ltd and contributors
-// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-
-/* eslint
-@typescript-eslint/no-non-null-assertion: "off",
- */
-
-import TextInputModal from "./TextInputModal.svelte";
-
-export interface TextInputModalProps {
- title: string;
- prompt: string;
- startingValue?: string;
- onOk: (string) => void;
-}
-
-export function textInputModal(props: TextInputModalProps): TextInputModal {
- const target = document.getElementById("modal")!;
- return new TextInputModal({
- target,
- props,
- });
-}
diff --git a/ts/sass/bootstrap-dark.scss b/ts/sass/bootstrap-dark.scss
index 8a03737a2..716119f94 100644
--- a/ts/sass/bootstrap-dark.scss
+++ b/ts/sass/bootstrap-dark.scss
@@ -14,13 +14,4 @@
background-color: var(--window-bg);
}
}
-
- .modal-content {
- background-color: var(--window-bg);
- color: var(--text-fg);
- }
-
- .btn-close {
- filter: invert(1) grayscale(100%) brightness(200%);
- }
}