feat(theme): Toggle and persist theme locally

This commit is contained in:
Bouncey
2018-09-14 14:48:16 +01:00
committed by Stuart Taylor
parent c7a4b5b50f
commit 0c3856c0d2
5 changed files with 46 additions and 2 deletions

View File

@ -7,6 +7,7 @@ import { createAppMountSaga } from './app-mount-saga';
import { createReportUserSaga } from './report-user-saga';
import { createShowCertSaga } from './show-cert-saga';
import { createUpdateMyEmailSaga } from './update-email-saga';
import { createNightModeSaga } from './night-mode-saga';
import { types as settingsTypes } from './settings';
@ -49,7 +50,8 @@ export const sagas = [
...createFetchUserSaga(types),
...createUpdateMyEmailSaga(types),
...createShowCertSaga(types),
...createReportUserSaga(types)
...createReportUserSaga(types),
...createNightModeSaga({ ...types, ...settingsTypes })
];
export const appMount = createAction(types.appMount);