mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 03:45:06 +03:00
format
This commit is contained in:
1 parent
3f52750bfa
commit
b3d63ebeed
1 file changed
+9
-5
@@ -101,12 +101,16 @@ export function ShortcutChordHud() {
|
||||
}
|
||||
|
||||
const fadeStartDelayMs = Math.max(0, remainingMs - timeoutMs * TILE_FADE_START_AT_PROGRESS)
|
||||
const nextRefreshDelayMs = progress > TILE_FADE_START_AT_PROGRESS ? fadeStartDelayMs : remainingMs
|
||||
const nextRefreshDelayMs =
|
||||
progress > TILE_FADE_START_AT_PROGRESS ? fadeStartDelayMs : remainingMs
|
||||
|
||||
refreshTimeoutRef.current = setTimeout(() => {
|
||||
refresh((value) => value + 1)
|
||||
refreshTimeoutRef.current = null
|
||||
}, Math.max(0, nextRefreshDelayMs))
|
||||
refreshTimeoutRef.current = setTimeout(
|
||||
() => {
|
||||
refresh((value) => value + 1)
|
||||
refreshTimeoutRef.current = null
|
||||
},
|
||||
Math.max(0, nextRefreshDelayMs)
|
||||
)
|
||||
}, [progress, remainingMs, timeoutMs])
|
||||
|
||||
if (!visibleSteps || isSuppressedByInputFocus) {
|
||||
|
||||
Reference in new issue
Block a user