diff --git a/dashboard/src/layouts/AuthLayout.tsx b/dashboard/src/layouts/AuthLayout.tsx index dbe51ff..4c2a5c6 100644 --- a/dashboard/src/layouts/AuthLayout.tsx +++ b/dashboard/src/layouts/AuthLayout.tsx @@ -1,18 +1,19 @@ -import { Box, Flex, Image, Text, Spinner } from '@chakra-ui/react'; +import { Box, Flex, Image, Text, Spinner, useMediaQuery, } from '@chakra-ui/react'; import React from 'react'; import { useQuery } from 'urql'; import { MetaQuery } from '../graphql/queries'; export function AuthLayout({ children }: { children: React.ReactNode }) { const [{ fetching, data }] = useQuery({ query: MetaQuery }); + const [isNotSmallerScreen] = useMediaQuery("(min-width:600px)"); return ( logo - + AUTHORIZER @@ -29,7 +33,14 @@ export function AuthLayout({ children }: { children: React.ReactNode }) { ) : ( <> - + {children}