Skip to content

Commit

Permalink
Convert routes and themeReducer to ts
Browse files Browse the repository at this point in the history
  • Loading branch information
josephktcheung committed Mar 11, 2020
1 parent cc348ed commit 5097061
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { CHANGE_THEME } from './configuration/actions';

export default (previousState = 'light', { type, payload }) => {
export default (
previousState = 'light',
{ type, payload }: { type: string; payload: any }
) => {
if (type === CHANGE_THEME) {
return payload;
}
Expand Down

0 comments on commit 5097061

Please sign in to comment.