- BackupReminder: wait while the signup dialog is open (the key is minted mid-flow), so "Save your login" no longer pops before signup is finished. Uses a small non-reactive signup flag set by SignupDialog. - BackupReminder: removed the custom close button — the Sheet already renders its own X (the sheet's close now snoozes for the session). - CreateEventPage: the "Link to a Skate Spot" row no longer overlaps — the label/hint can shrink and the Select Spot button stays put.
16 lines
463 B
TypeScript
16 lines
463 B
TypeScript
/**
|
|
* Tiny cross-component UI flags (module-level, non-reactive).
|
|
*
|
|
* Used so the global backup reminder can tell that the signup dialog is open and
|
|
* wait — the key is minted mid-flow, and the reminder belongs *after* the skater
|
|
* finishes, not while they're still choosing a name.
|
|
*/
|
|
let signupOpen = false;
|
|
|
|
export function setSignupOpen(value: boolean): void {
|
|
signupOpen = value;
|
|
}
|
|
|
|
export function isSignupOpen(): boolean {
|
|
return signupOpen;
|
|
}
|