Closed PabloCanalSuarez closed 4 years ago
I think it should have just the login to access the application
The login system is implemented in the NavBar. In case the user is not logged in, we must show some view, and that is the purpose of this Welcome Window.
It will have just a simply panel with some phrase like "Welcome to Viade", and the NavBar, where the buttons to register/login will be placed.
lgtm :)
Final indexing looks like this:
<HashRouter>
<Fragment>
<Switch>
<Route exact path="/404" component={PageNotFound} />
<Redirect exact from="/" to="/welcome" />
<Route exact path="/welcome" component={Welcome} />
<Route exact path="/dashboard" component={Main} />
<Route exact path="/register" component={Register}/>
<Redirect to="/404" />
</Switch>
</Fragment>
</HashRouter>
The application must have a home/welcome window. Very simple.