hint messages update
This commit is contained in:
@@ -137,15 +137,18 @@ export default function Chat() {
|
||||
}).catch(() => {});
|
||||
}, [features.loginType, features.inGuardiansGroup]);
|
||||
|
||||
// Close help — open deferred add-child popup if pending
|
||||
// Close help — open deferred add-child popup if pending, or settings for first-time default admin
|
||||
const handleHelpClose = useCallback(() => {
|
||||
if (addChildPending) {
|
||||
setAddChildPending(false);
|
||||
setModal('addchild');
|
||||
} else if (!helpDismissed && user?.is_default_admin && !localStorage.getItem('rosterchirp_admin_setup_shown')) {
|
||||
localStorage.setItem('rosterchirp_admin_setup_shown', '1');
|
||||
setModal('settings');
|
||||
} else {
|
||||
setModal(null);
|
||||
}
|
||||
}, [addChildPending]);
|
||||
}, [addChildPending, helpDismissed, user]);
|
||||
|
||||
// Register / refresh push subscription — FCM for Android/Chrome, Web Push for iOS
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user