mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-26 15:54:35 +08:00
refactor: move converted modals to a new folder, rename supportpopup to supportmodal
This commit is contained in:
parent
9f5be14a13
commit
491337217b
5 changed files with 5 additions and 5 deletions
|
@ -954,7 +954,7 @@
|
|||
<div id="versionHistoryWrapper" class="popupWrapper hidden">
|
||||
<div id="versionHistory"></div>
|
||||
</div>
|
||||
<dialog id="supportMePopup" class="modalWrapper hidden">
|
||||
<dialog id="supportModal" class="modalWrapper hidden">
|
||||
<div class="modal">
|
||||
<div class="title">Support Monkeytype</div>
|
||||
<div class="text">
|
||||
|
|
|
@ -1390,7 +1390,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
#supportMePopup {
|
||||
#supportModal {
|
||||
.modal {
|
||||
max-width: 900px;
|
||||
width: 100%;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as SupportPopup from "../popups/support-popup";
|
||||
import * as SupportPopup from "../modals/support";
|
||||
|
||||
document
|
||||
.querySelector("#pageAbout #supportMeAboutButton")
|
||||
|
|
|
@ -3,7 +3,7 @@ import { isAuthenticated } from "../firebase";
|
|||
import * as DB from "../db";
|
||||
import * as Notifications from "../elements/notifications";
|
||||
import { getCommandline } from "../utils/async-modules";
|
||||
import * as SupportPopup from "../popups/support-popup";
|
||||
import * as SupportPopup from "../modals/support";
|
||||
|
||||
document
|
||||
.querySelector("footer #commandLineButton")
|
||||
|
|
|
@ -5,7 +5,7 @@ export function show(): void {
|
|||
void modal.show();
|
||||
}
|
||||
|
||||
const modal = new AnimatedModal("supportMePopup", "popups", undefined, {
|
||||
const modal = new AnimatedModal("supportModal", "popups", undefined, {
|
||||
setup: (modalEl): void => {
|
||||
modalEl.querySelector("button.ads")?.addEventListener("click", async () => {
|
||||
const commandline = await getCommandline();
|
Loading…
Reference in a new issue