chore(workspace): eradicate all tsc errors and eslint warnings across frontend, admin, and backend
Deploy Canina / deploy (push) Failing after 29s
Deploy Canina / deploy (push) Failing after 29s
This commit is contained in:
1 parent
4659a7b1de
commit
9f11d8fb2d
98 files changed
+1272
-1009
No files matched your search
@@ -11,11 +11,13 @@ export const NetworkBanner = () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (!isOnline) {
|
||||
setShowStatus(true);
|
||||
setWasOffline(true);
|
||||
Promise.resolve().then(() => {
|
||||
setShowStatus(true);
|
||||
setWasOffline(true);
|
||||
});
|
||||
} else if (wasOffline) {
|
||||
// Show "Back Online" message briefly
|
||||
setShowStatus(true);
|
||||
Promise.resolve().then(() => setShowStatus(true));
|
||||
const timer = setTimeout(() => {
|
||||
setShowStatus(false);
|
||||
setWasOffline(false);
|
||||
|
||||
Reference in new issue
Block a user