{
const isActiveMaintenanceMode = Config.get("maintenanceMode");
@@ -20,7 +21,7 @@ const Layout = ({
{hasLandingHeader ? (
) : (
-
+
)}
{children}
@@ -32,6 +33,7 @@ const Layout = ({
Layout.propTypes = {
children: PropTypes.node,
+ displayMessage: PropTypes.bool,
hasLandingHeader: PropTypes.bool,
hasSharedButton: PropTypes.bool,
};
diff --git a/src/client/src/services/PrivateRoute/PrivateRoute.js b/src/client/src/services/PrivateRoute/PrivateRoute.js
index 15bbca305..305c8db23 100644
--- a/src/client/src/services/PrivateRoute/PrivateRoute.js
+++ b/src/client/src/services/PrivateRoute/PrivateRoute.js
@@ -5,7 +5,12 @@ import { Redirect, Route, useHistory } from "react-router-dom";
import Layout from "../../components/App/Layout";
import Auth from "../Auth";
-const PrivateRoute = ({ component: Component, location, ...rest }) => {
+const PrivateRoute = ({
+ component: Component,
+ displayMessage,
+ location,
+ ...rest
+}) => {
const history = useHistory();
async function getTempAuthAndRedirect(credential, location) {
@@ -46,7 +51,7 @@ const PrivateRoute = ({ component: Component, location, ...rest }) => {
{...rest}
render={(props) => {
return authorization.auth ? (
-
+
) : (
@@ -64,6 +69,7 @@ const PrivateRoute = ({ component: Component, location, ...rest }) => {
PrivateRoute.propTypes = {
component: PropTypes.elementType,
+ displayMessage: PropTypes.bool,
history: PropTypes.shape({
push: PropTypes.func,
}),