fixed history listener

This commit is contained in:
muerwre 2019-02-12 16:28:18 +07:00
parent 0a01c91271
commit 45ffff3550
2 changed files with 6 additions and 6 deletions

View file

@ -43,7 +43,8 @@ export function configureStore(): { store: Store<any>, persistor: Persistor } {
} }
export const history = createBrowserHistory(); export const history = createBrowserHistory();
// export const historyListener = history.listen((location, action) => {
// if (action === 'REPLACE') return; history.listen((location, action) => {
// store.dispatch(locationChanged(location.pathname)); if (action === 'REPLACE') return;
// }); store.dispatch(locationChanged(location.pathname));
});

View file

@ -34,8 +34,7 @@
width: 48px; width: 48px;
height: 48px; height: 48px;
background-size: cover; background-size: cover;
background-position: 50% 50%; background: rgba(0, 0, 0, 0.3) 50% 50%;
background: rgba(0,0,0,0.3);
border-radius: 3px 0 0 3px; border-radius: 3px 0 0 3px;
position: absolute; position: absolute;
left: 0; left: 0;