Feat: enable transition animation for dashboard
This commit is contained in:
parent
3eac055294
commit
cc14f37b6d
5 changed files with 43 additions and 5 deletions
|
|
@ -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} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue