From 61c92f9fb85b4a684374d64200ce2418dd0b4ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Thu, 22 Jul 2021 12:06:27 +0500 Subject: [PATCH] add layout noborder mode --- src/components/LayoutPortal.jsx | 16 ++++++++++------ src/pages/Main.jsx | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/components/LayoutPortal.jsx b/src/components/LayoutPortal.jsx index ce89995..d6cc868 100644 --- a/src/components/LayoutPortal.jsx +++ b/src/components/LayoutPortal.jsx @@ -3,14 +3,18 @@ import PageHeader from './PageHeader' const {Content} = Layout -export default function LayoutPortal({title, children}) { +export default function LayoutPortal({title, noSheet, children}) { + const content = noSheet + ? {children} + : + + {children} + + + return ( - - - {children} - - + {content} ) } \ No newline at end of file diff --git a/src/pages/Main.jsx b/src/pages/Main.jsx index 28210d4..4fbbac8 100644 --- a/src/pages/Main.jsx +++ b/src/pages/Main.jsx @@ -14,7 +14,7 @@ export default function Main() { - +