mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 02:35:41 +08:00
refactor: close #643 use react router
This commit is contained in:
@@ -49,7 +49,7 @@ export function isIOS() {
|
||||
}
|
||||
|
||||
export function useMobileScreen() {
|
||||
const [isMobileScreen_, setIsMobileScreen] = useState(false);
|
||||
const [isMobileScreen_, setIsMobileScreen] = useState(isMobileScreen());
|
||||
useEffect(() => {
|
||||
const onResize = () => {
|
||||
setIsMobileScreen(isMobileScreen());
|
||||
|
Reference in New Issue
Block a user