From 61ccc73e196e9984ce322365410cb65c0773251f Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Mon, 31 Jul 2023 14:50:27 +0700 Subject: [PATCH] add formatting --- src/containers/DefaultLayout/DefaultLayout.js | 76 +++++++++---------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/src/containers/DefaultLayout/DefaultLayout.js b/src/containers/DefaultLayout/DefaultLayout.js index 9fc5088..2d53f98 100644 --- a/src/containers/DefaultLayout/DefaultLayout.js +++ b/src/containers/DefaultLayout/DefaultLayout.js @@ -234,54 +234,54 @@ class DefaultLayout extends Component { } render() { - const { location } = this.props; - const { pathname } = location; - let renderSidebar = false + const { location } = this.props; + const { pathname } = location; + let renderSidebar = false - if (pathname.includes("/dashboard-project")) { - // Remove the base URL and hash - const path = pathname.replace("/dashboard-project/", ""); + if (pathname.includes("/dashboard-project")) { + // Remove the base URL and hash + const path = pathname.replace("/dashboard-project/", ""); - // Split the remaining path by "/" - const parts = path.split("/"); - if (parts[2] == "1") { - renderSidebar = true - } - } + // Split the remaining path by "/" + const parts = path.split("/"); + if (parts[2] == "1") { + renderSidebar = true + } + } return (
- {!window.location.href.includes("dashboard-project") || renderSidebar ? ( - - {/*