From f22f5c4a4bd96808da12f2c79187bfd87d4b2e53 Mon Sep 17 00:00:00 2001 From: Charlie RABILLER Date: Tue, 16 Mar 2021 08:18:05 +0100 Subject: [PATCH] add pub components --- components/kit/components/form/index.tsx | 2 +- components/kit/components/list/index.tsx | 2 +- components/kit/components/navigation/index.tsx | 2 +- components/kit/templates/errorsPages/index.tsx | 11 ++++++++++- components/site/section/SectionDesc.tsx | 5 +++-- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/components/kit/components/form/index.tsx b/components/kit/components/form/index.tsx index 0d901f7..3569513 100644 --- a/components/kit/components/form/index.tsx +++ b/components/kit/components/form/index.tsx @@ -29,7 +29,7 @@ const Forms: FC = () => { }, ]; - return ; + return ; }; export default Forms; diff --git a/components/kit/components/list/index.tsx b/components/kit/components/list/index.tsx index 37a66f7..70ae2a6 100644 --- a/components/kit/components/list/index.tsx +++ b/components/kit/components/list/index.tsx @@ -17,7 +17,7 @@ const ListPage: FC = () => { }, ]; - return ; + return ; }; export default ListPage; diff --git a/components/kit/components/navigation/index.tsx b/components/kit/components/navigation/index.tsx index dcf8b10..9f8f72c 100644 --- a/components/kit/components/navigation/index.tsx +++ b/components/kit/components/navigation/index.tsx @@ -23,7 +23,7 @@ const Navigation: FC = () => { }, ]; - return ; + return ; }; export default Navigation; diff --git a/components/kit/templates/errorsPages/index.tsx b/components/kit/templates/errorsPages/index.tsx index 0ed20f5..41ba30d 100644 --- a/components/kit/templates/errorsPages/index.tsx +++ b/components/kit/templates/errorsPages/index.tsx @@ -11,7 +11,16 @@ const ErrorPages = () => { }, ]; - return ; + return ( + + ); }; export default ErrorPages; diff --git a/components/site/section/SectionDesc.tsx b/components/site/section/SectionDesc.tsx index 6c7740a..6236b60 100644 --- a/components/site/section/SectionDesc.tsx +++ b/components/site/section/SectionDesc.tsx @@ -9,6 +9,7 @@ interface Props { id: string; isTemplate?: boolean; hasCommingSoon?: boolean; + withPub?: boolean; } interface section { @@ -19,7 +20,7 @@ interface section { isNew?: boolean; } -const SectionDesc = ({ title, items, id, hasCommingSoon, isTemplate }: Props) => { +const SectionDesc = ({ title, items, id, hasCommingSoon, isTemplate, withPub }: Props) => { return (

{title}

@@ -76,7 +77,7 @@ const SectionDesc = ({ title, items, id, hasCommingSoon, isTemplate }: Props) => )}
- + {withPub && } ); };