mirror of
https://github.com/zerosoul/chinese-colors.git
synced 2025-02-17 21:09:36 +08:00
refactor: useMobile update the width
This commit is contained in:
parent
1ec168eb56
commit
dca6098f0c
@ -1,6 +1,6 @@
|
||||
import { useState, useReducer, useEffect } from 'react';
|
||||
|
||||
const useMobile = (width = 411) => {
|
||||
const useMobile = (width = 750) => {
|
||||
const [isMobile, setIsMobile] = useState(window.innerWidth <= width);
|
||||
|
||||
console.log('mmmmmm');
|
||||
|
Loading…
Reference in New Issue
Block a user