fix: window.DisableAnimatedMan as boolean (#62)

* fix: window.DisableAnimatedMan as boolean

* chore: auto-fix linting and formatting issues

---------

Co-authored-by: hamster1963 <hamster1963@users.noreply.github.com>
This commit is contained in:
仓鼠
2024-12-19 21:54:24 +08:00
committed by GitHub
parent 9440d1f256
commit cc30a53380
2 changed files with 98 additions and 98 deletions

View File

@@ -66,7 +66,7 @@ export default function Header() {
const navigate = useNavigate() const navigate = useNavigate()
// @ts-expect-error DisableAnimatedMan is a global variable // @ts-expect-error DisableAnimatedMan is a global variable
const disableAnimatedMan = window.DisableAnimatedMan === true const disableAnimatedMan = window.DisableAnimatedMan as boolean
return isDesktop ? ( return isDesktop ? (
<header className="flex pt-8 px-4 dark:bg-black/40 bg-muted border-b-[1px] overflow-visible"> <header className="flex pt-8 px-4 dark:bg-black/40 bg-muted border-b-[1px] overflow-visible">