refactor: replace native confirm() dialogs with shared ConfirmService modal #228
@@ -52,7 +52,7 @@ export interface ConfirmService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function createConfirmService(): ConfirmService {
|
export function createConfirmService(): ConfirmService {
|
||||||
let resolveRef: ((value: boolean) => void) | null = $state(null);
|
let resolveRef: ((value: boolean) => void) | null = null;
|
||||||
let options: ConfirmOptions | null = $state(null);
|
let options: ConfirmOptions | null = $state(null);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user