Set ts compiler to strict, refactored a bit
This commit is contained in:
@ -4,18 +4,21 @@ import type { TitleProps } from "../types/types";
|
||||
import Header from "./header";
|
||||
import Footer from "./footer";
|
||||
|
||||
const Layout: Component<TitleProps> = ({ children, title, className }) => {
|
||||
return (
|
||||
<div class={ `bg-default-bg text-white min-h-screen relative font-mono ${ className }` }>
|
||||
<div class="container mx-auto">
|
||||
<Header className={ "py-3" } title={ title } />
|
||||
<main>
|
||||
<div class={ "pb-28" }>{ children }</div>
|
||||
<Footer />
|
||||
</main>
|
||||
</div>
|
||||
const Layout: Component<TitleProps> = (
|
||||
{
|
||||
children,
|
||||
title,
|
||||
className
|
||||
}) => (
|
||||
<div class={ `bg-default-bg text-white min-h-screen relative font-mono ${ className }` }>
|
||||
<div class="container mx-auto">
|
||||
<Header className={ "py-3" } title={ title } />
|
||||
<main>
|
||||
<div class={ "pb-28" }>{ children }</div>
|
||||
<Footer />
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
</div>
|
||||
);
|
||||
|
||||
export default Layout;
|
||||
|
Reference in New Issue
Block a user