Added the className property and applied it to the div instead of the ReactFragment tag.

This commit is contained in:
filantrop 2022-07-28 23:27:51 +03:00
parent d281f96a40
commit a729078328

View File

@ -3,11 +3,12 @@ type Props = {
header?: React.ReactElement,
children: React.ReactNode,
footer?: React.ReactElement,
className : string,
}
function BaseLayout({header, footer, children}: Props) {
function BaseLayout( { header, footer, children, className }: Props ) {
return (
<>
<div className={className}>
<header>
{header}
</header>
@ -19,7 +20,7 @@ function BaseLayout({header, footer, children}: Props) {
<footer>
{footer}
</footer>
</>
</div>
);
}