mirror of
https://github.com/StanGirard/quivr.git
synced 2024-11-11 00:23:17 +03:00
feat: keep sidebar opened on non mobile devices (#1840)
Issue: https://github.com/StanGirard/quivr/issues/1721 Demo: https://github.com/StanGirard/quivr/assets/63923024/78bf776b-643c-43a2-ab03-ca2ec0aa5eb5
This commit is contained in:
parent
d9f6ce4e68
commit
826ac501e3
@ -5,7 +5,7 @@ import { useEffect, useState } from "react";
|
|||||||
const MOBILE_MAX_WIDTH = 640;
|
const MOBILE_MAX_WIDTH = 640;
|
||||||
|
|
||||||
export const useDevice = (): { isMobile: boolean } => {
|
export const useDevice = (): { isMobile: boolean } => {
|
||||||
const [isMobile, setIsMobile] = useState(true);
|
const [isMobile, setIsMobile] = useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleResize = () => {
|
const handleResize = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user