Fix the mechanical style rules. [skip build]
This commit is contained in:
@@ -30,7 +30,7 @@ export function SettingTile({
|
||||
const anchorId = anchorIdProp ?? autoAnchorId;
|
||||
|
||||
useEffect(() => {
|
||||
if (!anchorId || !focusAnchorId || anchorId !== focusAnchorId) return;
|
||||
if (!anchorId || !focusAnchorId || anchorId !== focusAnchorId) return undefined;
|
||||
let cancelled = false;
|
||||
let attempts = 0;
|
||||
|
||||
@@ -57,7 +57,7 @@ export function SettingTile({
|
||||
}, [anchorId, focusAnchorId, setAnchorId]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!highlighted) return;
|
||||
if (!highlighted) return undefined;
|
||||
const timer = window.setTimeout(() => setHighlighted(false), 1400);
|
||||
return () => window.clearTimeout(timer);
|
||||
}, [highlighted]);
|
||||
|
||||
Reference in New Issue
Block a user