Feat: enable transition animation for dashboard

This commit is contained in:
Cesar 2021-01-06 15:47:25 +00:00 committed by Josh Harvey
parent 3eac055294
commit cc14f37b6d
5 changed files with 43 additions and 5 deletions

View file

@ -303,7 +303,21 @@ const Routes = () => {
<Route exact path="/">
<Redirect to={{ pathname: '/transactions' }} />
</Route>
<Route path="/dashboard" component={Dashboard} />
{/* <Route path="/dashboard" /> */}
<Route path={'/dashboard'}>
<Transition
className={classes.wrapper}
{...transitionProps}
in={true}
mountOnEnter
unmountOnExit
children={
<div className={classes.wrapper}>
<Dashboard />
</div>
}
/>
</Route>
<Route path="/machines" component={Machines} />
<Route path="/wizard" component={Wizard} />
<Route path="/register" component={AuthRegister} />