1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-22 10:22:30 +01:00

Update ChannelSidebar.tsx

This commit is contained in:
Puyodead1 2024-04-04 22:25:40 -04:00 committed by Puyodead1
parent 960f9bf875
commit 32208f5ef3
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -1,4 +1,4 @@
import { useMediaQuery, useWindowSize } from "@uidotdev/usehooks";
import { useWindowSize } from "@uidotdev/usehooks";
import { observer } from "mobx-react-lite";
import { useEffect, useState } from "react";
import { isDesktop } from "react-device-detect";
@ -17,7 +17,7 @@ const Wrapper = styled(Container)`
function ChannelSidebar() {
const windowSize = useWindowSize();
const isSmallScreen = useMediaQuery("only screen and (max-width: 810px)");
//const isSmallScreen = useMediaQuery("only screen and (max-width: 810px)");
const [size, setSize] = useState<number | undefined>();
useEffect(() => {
@ -29,7 +29,7 @@ function ChannelSidebar() {
return (
<Wrapper
style={
isSmallScreen && !isDesktop
!isDesktop
? {
width: size,
}