mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
adds eslint
This commit is contained in:

committed by
Geoff Seemueller

parent
9698fc6f3b
commit
02c3253343
@@ -1,10 +1,12 @@
|
||||
import React from "react";
|
||||
import { Grid, GridItem } from "@chakra-ui/react";
|
||||
import Navigation from "./Navigation";
|
||||
import Routes from "../renderer/routes";
|
||||
import Hero from "./Hero";
|
||||
import Content from "./Content";
|
||||
import { useIsMobile } from "../components/contexts/MobileContext";
|
||||
import { Grid, GridItem } from '@chakra-ui/react';
|
||||
import React from 'react';
|
||||
|
||||
import { useIsMobile } from '../components/contexts/MobileContext';
|
||||
import Routes from '../renderer/routes';
|
||||
|
||||
import Content from './Content';
|
||||
import Hero from './Hero';
|
||||
import Navigation from './Navigation';
|
||||
|
||||
export default function LayoutComponent({ children }) {
|
||||
const isMobile = useIsMobile();
|
||||
@@ -17,17 +19,17 @@ export default function LayoutComponent({ children }) {
|
||||
"main"`
|
||||
: `"nav main"`
|
||||
}
|
||||
gridTemplateRows={isMobile ? "auto 1fr" : "1fr"}
|
||||
gridTemplateColumns={isMobile ? "1fr" : "auto 1fr"}
|
||||
gridTemplateRows={isMobile ? 'auto 1fr' : '1fr'}
|
||||
gridTemplateColumns={isMobile ? '1fr' : 'auto 1fr'}
|
||||
minHeight="100vh"
|
||||
gap="1"
|
||||
>
|
||||
<GridItem area={"nav"} hidden={false}>
|
||||
<GridItem area={'nav'} hidden={false}>
|
||||
<Navigation routeRegistry={Routes}>
|
||||
<Hero />
|
||||
</Navigation>
|
||||
</GridItem>
|
||||
<GridItem area={"main"}>
|
||||
<GridItem area={'main'}>
|
||||
<Content>{children}</Content>
|
||||
</GridItem>
|
||||
</Grid>
|
||||
|
Reference in New Issue
Block a user