Added the className property and applied it to the div instead of the ReactFragment tag.
This commit is contained in:
parent
d281f96a40
commit
a729078328
@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user