From 3d357b253b5bcd33393182c8c6733c511f95f0cd Mon Sep 17 00:00:00 2001 From: jeffvli Date: Wed, 4 Aug 2021 11:23:32 -0700 Subject: [PATCH] set footer as dynamic --- src/components/layout/Layout.tsx | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/components/layout/Layout.tsx b/src/components/layout/Layout.tsx index a88e5ec..f05a86d 100644 --- a/src/components/layout/Layout.tsx +++ b/src/components/layout/Layout.tsx @@ -1,8 +1,7 @@ import React, { useState } from 'react'; import { useHistory } from 'react-router-dom'; -import { Container, Sidebar as Sb, Content, Footer } from 'rsuite'; +import { Container, Content, Footer } from 'rsuite'; import classNames from 'classnames'; - import Sidebar from './Sidebar'; import '../../styles/Layout.global.css'; @@ -40,12 +39,6 @@ const Layout = ({ footer, children }: any) => { history.push(route); }; - const containerSidebarClasses = classNames({ - container__sidebar: true, - container__sidebar_expanded: expandSidebar === true, - container__sidebar_shrunk: expandSidebar === false, - }); - const containerRootClasses = classNames({ container__root: true, container__root_expanded: expandSidebar === true, @@ -66,9 +59,11 @@ const Layout = ({ footer, children }: any) => { {children} - + {footer && ( + + )} );