refactor: removed action variable(only used once)
This commit is contained in:
parent
de4a767b21
commit
78ba6bad8b
1 changed files with 1 additions and 2 deletions
|
|
@ -257,7 +257,6 @@ const Routes = () => {
|
||||||
|
|
||||||
const history = useHistory()
|
const history = useHistory()
|
||||||
const location = useLocation()
|
const location = useLocation()
|
||||||
const action = history.action
|
|
||||||
|
|
||||||
const { wizardTested } = useContext(AppContext)
|
const { wizardTested } = useContext(AppContext)
|
||||||
|
|
||||||
|
|
@ -267,7 +266,7 @@ const Routes = () => {
|
||||||
history.push('/wizard')
|
history.push('/wizard')
|
||||||
}
|
}
|
||||||
|
|
||||||
const Transition = action === 'PUSH' && location.state ? Slide : Fade
|
const Transition = history.action === 'PUSH' && location.state ? Slide : Fade
|
||||||
|
|
||||||
const transitionProps =
|
const transitionProps =
|
||||||
Transition === Slide
|
Transition === Slide
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue