From 6a200e57d4a0be0532587b9648ff8d58f97e91e8 Mon Sep 17 00:00:00 2001 From: eug-vs 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/containers') 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 = ({ title, actions, children }) => ( +const Page: React.FC = ({ title, actions, className, children }) => (
{title} @@ -19,7 +20,9 @@ const Page: React.FC = ({ title, actions, children }) => ( {actions?.map(action => ())}
- {children} +
+ {children} +
); -- cgit v1.2.3