From 3a11563d5bf19d8952e5e265929b49b314117211 Mon Sep 17 00:00:00 2001 From: Johan Sosa Date: Tue, 19 Dec 2023 11:39:57 +0100 Subject: [PATCH 1/8] fix(TotalLayoutContainer): Render Header and Footer components --- .../TotalLayout/TotalLayoutContainer/TotalLayoutContainer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/components/src/layout/TotalLayout/TotalLayoutContainer/TotalLayoutContainer.js b/packages/components/src/layout/TotalLayout/TotalLayoutContainer/TotalLayoutContainer.js index de1fd96f1..ebfaa0b5f 100644 --- a/packages/components/src/layout/TotalLayout/TotalLayoutContainer/TotalLayoutContainer.js +++ b/packages/components/src/layout/TotalLayout/TotalLayoutContainer/TotalLayoutContainer.js @@ -1,5 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; +import { isFunction } from 'lodash'; import { Box } from '../../Box'; import { Stack } from '../../Stack'; import { TotalLayoutContainerStyles } from './TotalLayoutContainer.styles'; @@ -35,12 +36,12 @@ const TotalLayoutContainer = ({ Header, Footer, scrollRef, children }) => { -
+ {isFunction(Header) ?
: Header} {children} {!!Footer && ( - {Footer} + {isFunction(Footer) ?