chore: auto-fix linting and formatting issues

This commit is contained in:
hamster1963 2025-03-25 09:22:19 +00:00 committed by github-actions[bot]
parent 91a4445236
commit 3b8c563651

View File

@ -57,7 +57,7 @@ export default function Switch({
w: currentTagElement.offsetWidth, w: currentTagElement.offsetWidth,
}) })
} }
if (isFirstRender) { if (isFirstRender) {
setTimeout(() => { setTimeout(() => {
setIsFirstRender(false) setIsFirstRender(false)
@ -95,7 +95,7 @@ export default function Switch({
borderRadius: 24, borderRadius: 24,
width: `${indicator.w}px`, width: `${indicator.w}px`,
transform: `translateX(${indicator.x}px)`, transform: `translateX(${indicator.x}px)`,
transition: isFirstRender ? 'none' : "all 0.5s cubic-bezier(0.4, 0, 0.2, 1)", transition: isFirstRender ? "none" : "all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",
}} }}
/> />
)} )}