fix(app/redux): Remove tracking of app height

This commit is contained in:
Berkeley Martinez
2018-01-08 12:00:06 -08:00
parent 8fe46d1f9a
commit d86eba998b
2 changed files with 1 additions and 16 deletions

View File

@ -12,7 +12,6 @@ import { createSelector } from 'reselect';
import fetchUserEpic from './fetch-user-epic.js';
import updateMyCurrentChallengeEpic from './update-my-challenge-epic.js';
import fetchChallengesEpic from './fetch-challenges-epic.js';
import navSizeEpic from './nav-size-epic.js';
import { createFilesMetaCreator } from '../files';
import { updateThemeMetacreator, entitiesSelector } from '../entities';
@ -26,8 +25,7 @@ import { themes, invertTheme } from '../../utils/themes.js';
export const epics = [
fetchUserEpic,
fetchChallengesEpic,
updateMyCurrentChallengeEpic,
navSizeEpic
updateMyCurrentChallengeEpic
];
export const types = createTypes([

View File

@ -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);
});
}