-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile fix #2
Compile fix #2
Conversation
bencefr
commented
Oct 20, 2017
- added missing copyright headers
- fixed linting issues
- fixed missing prop types
- fixed react errors
actions/jprog.js
Outdated
@@ -69,7 +104,7 @@ export function logDeviceInfo(serialNumber, comName) { | |||
// LOAD_TARGET_INFO action, listen to LOAD_TARGET_INFO_SUCCESS | |||
// in middleware and log it from there? | |||
dispatch({ | |||
type: 'target-size-known', | |||
type: 'TARGET-SIZE-KNOWN', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about using underscores instead of dashes, i.e. TARGET_SIZE_KNOWN
? This is the convention we have used for action type names in our other projects.
actions/files.js
Outdated
@@ -217,7 +255,7 @@ export function checkUpToDateFiles(fileLoadTimes, dispatch) { | |||
const lastLoaded = (new Date(newestFileTimestamp)).toLocaleString(); | |||
|
|||
electron.remote.dialog.showMessageBox({ | |||
type: 'warning', | |||
type: 'WARNING', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to https://github.com/electron/electron/blob/master/docs/api/dialog.md#dialogshowmessageboxbrowserwindow-options-callback , this should be lowercase