From 45ffff3550023493f9935933eb63b3d1baa6d3ce Mon Sep 17 00:00:00 2001 From: muerwre Date: Tue, 12 Feb 2019 16:28:18 +0700 Subject: [PATCH] fixed history listener --- src/redux/store.ts | 9 +++++---- src/styles/user-button.less | 3 +-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/redux/store.ts b/src/redux/store.ts index 228e307..e7aba7f 100644 --- a/src/redux/store.ts +++ b/src/redux/store.ts @@ -43,7 +43,8 @@ export function configureStore(): { store: Store, persistor: Persistor } { } export const history = createBrowserHistory(); -// export const historyListener = history.listen((location, action) => { -// if (action === 'REPLACE') return; -// store.dispatch(locationChanged(location.pathname)); -// }); + +history.listen((location, action) => { + if (action === 'REPLACE') return; + store.dispatch(locationChanged(location.pathname)); +}); diff --git a/src/styles/user-button.less b/src/styles/user-button.less index 31298e4..378ba24 100644 --- a/src/styles/user-button.less +++ b/src/styles/user-button.less @@ -34,8 +34,7 @@ width: 48px; height: 48px; background-size: cover; - background-position: 50% 50%; - background: rgba(0,0,0,0.3); + background: rgba(0, 0, 0, 0.3) 50% 50%; border-radius: 3px 0 0 3px; position: absolute; left: 0;