use styled-jsx in PageContainer

This commit is contained in:
Halit Aksoy 2022-07-14 22:38:33 +03:00
parent 2711f4061f
commit 0b308e570e

View File

@ -5,13 +5,17 @@ import { Theme } from "../theme/Theme";
const PageContainer: FunctionComponent<{ theme: Theme }> = (props) => { const PageContainer: FunctionComponent<{ theme: Theme }> = (props) => {
return ( return (
<div style={{ <div style={{
display: "flex",
flexDirection: "column",
alignItems: "center",
background: props.theme?.background, background: props.theme?.background,
flex: "1",
minHeight: "400px"
}}> }}>
<style jsx>{`
div {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
min-height: 400px;
}
`}</style>
{props.children} {props.children}
</div> </div>
); );