Skip to content

Commit

Permalink
remove deprecated theme-ui components from notes-theme (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
gillkyle authored Sep 15, 2020
1 parent 0766e93 commit 4c9d3bc
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions packages/gatsby-theme-notes/src/components/layout.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react"
import { Global } from "@emotion/core"
import { css } from "theme-ui"
import { Layout, Main, Container } from "theme-ui"
import { css, Box } from "theme-ui"
import Footer from "./footer"

export default (props) => (
Expand All @@ -17,13 +16,25 @@ export default (props) => (
},
})}
/>
<Layout>
<Main>
<Container>
<Box
css={css({
minHeight: `100vh`,
display: `flex`,
flexDirection: `column`,
})}
>
<Box as="main">
<Box
p={[5]}
css={css({
display: `flex`,
flexDirection: `column`,
})}
>
{props.children}
<Footer />
</Container>
</Main>
</Layout>
</Box>
</Box>
</Box>
</>
)

0 comments on commit 4c9d3bc

Please sign in to comment.