From c8a852f3cf7e1c3da69a14ed27c3c148750e1568 Mon Sep 17 00:00:00 2001 From: EINazare Date: Fri, 6 Mar 2020 16:55:49 +0200 Subject: [PATCH] fix: fix #8 --- src/layouts/Admin/Admin.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/layouts/Admin/Admin.jsx b/src/layouts/Admin/Admin.jsx index b36f4cd1..90dc0850 100755 --- a/src/layouts/Admin/Admin.jsx +++ b/src/layouts/Admin/Admin.jsx @@ -16,7 +16,7 @@ */ import React from "react"; -import { Route, Switch } from "react-router-dom"; +import { Route, Switch, Redirect } from "react-router-dom"; // javascript plugin used to create scrollbars on windows import PerfectScrollbar from "perfect-scrollbar"; @@ -133,7 +133,10 @@ class Admin extends React.Component { toggleSidebar={this.toggleSidebar} sidebarOpened={this.state.sidebarOpened} /> - {this.getRoutes(routes)} + + {this.getRoutes(routes)} + + {// we don't want the Footer to be rendered on map page this.props.location.pathname.indexOf("maps") !== -1 ? null : (