diff --git a/src/App.js b/src/App.js index 8df143e..f1bc47c 100644 --- a/src/App.js +++ b/src/App.js @@ -1,14 +1,7 @@ import React, { Component } from "react"; import { Route, Switch, withRouter } from "react-router-dom"; import { connect } from "react-redux"; -import { - MainView, - Header, - LoginPopup, - Enrolment, - ViewRecipe, - MyMenu -} from "./containers"; +import { MainView, Header, Enrolment, ViewRecipe, MyMenu } from "./containers"; import classNames from "classnames/bind"; import styles from "./App.scss"; const cx = classNames.bind(styles); @@ -20,8 +13,10 @@ const mapDispatchToProps = dispatch => ({}); class App extends Component { render() { + const bEnrolment = + this.props.location.pathname.indexOf("enrolment") > 0 ? true : false; return ( -