mattermost-mobile/app/reducers/views/client_upgrade.js
Jesse Hallam 58b72302d6 update eslint's comma-dangle rule to always-multiline (#1457)
* update eslint's `comma-dangle` rule to `always-multiline`

* add check and fix scripts to package.json

* Invoke `yarn fix` to adopt the updated eslint rules. No other changes are included.
2018-02-23 09:06:02 -05:00

16 lines
345 B
JavaScript

const initialState = {
lastUpdateCheck: 0,
};
import {ViewTypes} from 'app/constants';
export default function clientUpgrade(state = initialState, action) {
switch (action.type) {
case ViewTypes.SET_LAST_UPGRADE_CHECK:
return {
lastUpdateCheck: Date.now(),
};
default:
return state;
}
}