fix(app/redux): Remove tracking of app height
This commit is contained in:
@ -12,7 +12,6 @@ import { createSelector } from 'reselect';
|
|||||||
import fetchUserEpic from './fetch-user-epic.js';
|
import fetchUserEpic from './fetch-user-epic.js';
|
||||||
import updateMyCurrentChallengeEpic from './update-my-challenge-epic.js';
|
import updateMyCurrentChallengeEpic from './update-my-challenge-epic.js';
|
||||||
import fetchChallengesEpic from './fetch-challenges-epic.js';
|
import fetchChallengesEpic from './fetch-challenges-epic.js';
|
||||||
import navSizeEpic from './nav-size-epic.js';
|
|
||||||
|
|
||||||
import { createFilesMetaCreator } from '../files';
|
import { createFilesMetaCreator } from '../files';
|
||||||
import { updateThemeMetacreator, entitiesSelector } from '../entities';
|
import { updateThemeMetacreator, entitiesSelector } from '../entities';
|
||||||
@ -26,8 +25,7 @@ import { themes, invertTheme } from '../../utils/themes.js';
|
|||||||
export const epics = [
|
export const epics = [
|
||||||
fetchUserEpic,
|
fetchUserEpic,
|
||||||
fetchChallengesEpic,
|
fetchChallengesEpic,
|
||||||
updateMyCurrentChallengeEpic,
|
updateMyCurrentChallengeEpic
|
||||||
navSizeEpic
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export const types = createTypes([
|
export const types = createTypes([
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
import { ofType } from 'redux-epic';
|
|
||||||
|
|
||||||
import { types } from './';
|
|
||||||
|
|
||||||
import { updateNavHeight } from '../Panes/redux';
|
|
||||||
|
|
||||||
export default function navSizeEpic(actions, _, { document }) {
|
|
||||||
return actions::ofType(types.appMounted)
|
|
||||||
.map(() => {
|
|
||||||
const navbar = document.getElementById('navbar');
|
|
||||||
return updateNavHeight(navbar.clientHeight || 50);
|
|
||||||
});
|
|
||||||
}
|
|
Reference in New Issue
Block a user