Skip to content

Commit

Permalink
✨ new(hooks): useResponsive hook deffaul breakpoints fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
creador-dev committed Sep 19, 2024
1 parent aa94448 commit 4af0ebc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/hooks/src/use-responsive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ const getDevice = (devices: ConfigType): string => {
const useResponsive = (config: ConfigType = {}) => {
const defaultBreakpoints = useMemo(() => {
return {
desktop: 1200,
tablet: 1024,
mobile: 600,
desktop: 1024,
tablet: [1024, 600],
mobile: [600, 0],
...config,
}
}, [config])
Expand Down

0 comments on commit 4af0ebc

Please sign in to comment.