refactor: minor changes in animation props

This commit is contained in:
José Oliveira 2021-02-22 13:10:09 +00:00 committed by Josh Harvey
parent 887815dfc9
commit bde1f4c69c

View file

@ -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