refactor: standardize "use client" directive and improve button styles across components
Some checks failed
Frontend CI / lint (push) Failing after 18s
Frontend CI / build (push) Has been skipped

This commit is contained in:
JSC
2025-10-04 14:57:18 +02:00
parent cbd4b93fd4
commit 9aa628a9d2
16 changed files with 28 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
import * as React from 'react'
import * as React from "react"
const MOBILE_BREAKPOINT = 768
@@ -10,9 +10,9 @@ export function useIsMobile() {
const onChange = () => {
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
}
mql.addEventListener('change', onChange)
mql.addEventListener("change", onChange)
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
return () => mql.removeEventListener('change', onChange)
return () => mql.removeEventListener("change", onChange)
}, [])
return !!isMobile