forked from p96170835/amis
export Layout
This commit is contained in:
parent
719dabd0c9
commit
32e364e997
|
@ -37,7 +37,7 @@ interface LayoutProps {
|
||||||
bodyClassName?: string;
|
bodyClassName?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
function Layout({
|
export function Layout({
|
||||||
header,
|
header,
|
||||||
aside,
|
aside,
|
||||||
asideClassName,
|
asideClassName,
|
||||||
|
@ -66,7 +66,7 @@ function Layout({
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
bodyClassName && document.body.classList.add(bodyClassName);
|
bodyClassName && document.body.classList.add(bodyClassName);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
bodyClassName && document.body.classList.remove(bodyClassName)
|
bodyClassName && document.body.classList.remove(bodyClassName)
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue