refactor: removed action variable(only used once)

This commit is contained in:
Jose Sousa 2020-11-19 17:02:57 +00:00 committed by Josh Harvey
parent de4a767b21
commit 78ba6bad8b

View file

@ -257,7 +257,6 @@ const Routes = () => {
const history = useHistory()
const location = useLocation()
const action = history.action
const { wizardTested } = useContext(AppContext)
@ -267,7 +266,7 @@ const Routes = () => {
history.push('/wizard')
}
const Transition = action === 'PUSH' && location.state ? Slide : Fade
const Transition = history.action === 'PUSH' && location.state ? Slide : Fade
const transitionProps =
Transition === Slide