refactor(web): Remove unused components and hooks (#1263)

* Update add_normal_icon.yml

Signed-off-by: Thomas Camlong <thomas@ajnart.fr>

* Update add_normal_icon.yml

Signed-off-by: Thomas Camlong <thomas@ajnart.fr>

* Update add_normal_icon.yml

Signed-off-by: Thomas Camlong <thomas@ajnart.fr>

* change id

* refactor(web): Remove unused components and hooks

---------

Signed-off-by: Thomas Camlong <thomas@ajnart.fr>
Co-authored-by: Thomas Camlong <thomas@ajnart.fr>
This commit is contained in:
Bjorn Lammers
2025-04-25 23:22:01 +02:00
committed by GitHub
parent 1d44dcd6fe
commit f0e20c2b19
9 changed files with 124 additions and 658 deletions

View File

@@ -1,25 +0,0 @@
"use client"
import { useEffect, useState } from "react"
export function useMediaQuery(query: string): boolean {
const [matches, setMatches] = useState(false)
useEffect(() => {
const media = window.matchMedia(query)
// Initial check
if (media.matches !== matches) {
setMatches(media.matches)
}
// Setup listener for changes
const listener = () => setMatches(media.matches)
media.addEventListener("change", listener)
// Cleanup
return () => media.removeEventListener("change", listener)
}, [query, matches])
return matches
}