Migrate DeleteServerModal to tailwind components

This commit is contained in:
Alejandro Celaya
2025-04-03 07:57:58 +02:00
parent 15ef29ecea
commit 01ca369388
11 changed files with 117 additions and 107 deletions

View File

@@ -22,3 +22,12 @@ afterEach(() => {
HTMLCanvasElement.prototype.getContext = (() => {}) as any;
(global as any).scrollTo = () => {};
(global as any).matchMedia = () => ({ matches: false });
HTMLDialogElement.prototype.showModal = function() {
this.setAttribute('open', '');
};
HTMLDialogElement.prototype.close = function() {
this.removeAttribute('open');
this.dispatchEvent(new CloseEvent('close'));
this.dispatchEvent(new CloseEvent('cancel'));
};