mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
chore: auto-fix linting and formatting issues
This commit is contained in:
parent
91a4445236
commit
3b8c563651
@ -57,7 +57,7 @@ export default function Switch({
|
||||
w: currentTagElement.offsetWidth,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
if (isFirstRender) {
|
||||
setTimeout(() => {
|
||||
setIsFirstRender(false)
|
||||
@ -95,7 +95,7 @@ export default function Switch({
|
||||
borderRadius: 24,
|
||||
width: `${indicator.w}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)",
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user