refactor: minor changes in animation props
This commit is contained in:
parent
887815dfc9
commit
bde1f4c69c
1 changed files with 1 additions and 5 deletions
|
|
@ -92,17 +92,13 @@ const Main = () => {
|
||||||
? classes.contentWithSidebar
|
? classes.contentWithSidebar
|
||||||
: classes.contentWithoutSidebar
|
: classes.contentWithoutSidebar
|
||||||
|
|
||||||
const transitionProps = {
|
|
||||||
direction: 'left'
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classes.root}>
|
<div className={classes.root}>
|
||||||
{!is404 && wizardTested && <Header tree={tree} />}
|
{!is404 && wizardTested && <Header tree={tree} />}
|
||||||
<main className={classes.wrapper}>
|
<main className={classes.wrapper}>
|
||||||
{sidebar && !is404 && wizardTested && (
|
{sidebar && !is404 && wizardTested && (
|
||||||
<Slide
|
<Slide
|
||||||
{...transitionProps}
|
direction="left"
|
||||||
in={true}
|
in={true}
|
||||||
mountOnEnter
|
mountOnEnter
|
||||||
unmountOnExit
|
unmountOnExit
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue