From 6a200e57d4a0be0532587b9648ff8d58f97e91e8 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Tue, 16 Mar 2021 01:38:02 +0300
Subject: feat: allow passing className to Page

---
 src/containers/Page.tsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'src')

diff --git a/src/containers/Page.tsx b/src/containers/Page.tsx
index c05ef4b..879d130 100644
--- a/src/containers/Page.tsx
+++ b/src/containers/Page.tsx
@@ -9,9 +9,10 @@ export interface Action extends ButtonProps {
 interface Props {
   title?: string;
   actions?: Action[];
+  className?: string;
 }
 
-const Page: React.FC<Props> = ({ title, actions, children }) => (
+const Page: React.FC<Props> = ({ title, actions, className, children }) => (
   <Paper>
     <div className="mb-2 flex justify-between items-center">
       <span className="text-2xl font-bold">{title}</span>
@@ -19,7 +20,9 @@ const Page: React.FC<Props> = ({ title, actions, children }) => (
         {actions?.map(action => (<Button {...action} key={action.name} size="sm">{action.name}</Button>))}
       </div>
     </div>
-    {children}
+    <div className={className}>
+      {children}
+    </div>
   </Paper>
 );
 
-- 
cgit v1.2.3