Remove unused prop from component
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { withRouter } from "react-router-dom";
|
import { withRouter } from "react-router-dom";
|
||||||
|
|
||||||
export default withRouter(function RouteChangeTracker({ history, logEvent }) {
|
export default withRouter(function RouteChangeTracker({ history }) {
|
||||||
history.listen((location, action) => {
|
history.listen((location, action) => {
|
||||||
if (location.pathname === "/login") {
|
if (location.pathname === "/login") {
|
||||||
document.body.style.overflow = "hidden";
|
document.body.style.overflow = "hidden";
|
||||||
|
|||||||
Reference in New Issue
Block a user