Skip to content

Commit fd8d8e3

Browse files
author
Matthew Vita
committed
eslint fixes... Travis will be happy now :)
1 parent f34bbc3 commit fd8d8e3

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

samples/react-redux-patient-demographics-example/src/routes/Patient/Demographics/Basic/BasicComponent.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,9 @@ class Basic extends React.Component {
382382
</table>
383383

384384
<button className='btn btn-default btn-sm' type='submit'>SAVE</button>
385-
<button className='btn btn-default btn-sm' type='button' onClick={this.handleCancel.bind(this)}>CANCEL</button>
385+
<button className='btn btn-default btn-sm'
386+
type='button'
387+
onClick={this.handleCancel.bind(this)}>CANCEL</button>
386388
</Formsy.Form>
387389
)
388390
} else {

samples/react-redux-patient-demographics-example/src/routes/Patient/Demographics/Contact/ContactComponent.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ import React, {Component} from 'react'
22
import Formsy from 'formsy-react'
33
import { FormsyInput } from '../../../../common/FormsyInput'
44
import { FormsyHiddenInput } from '../../../../common/FormsyHiddenInput'
5-
import { FormsyDatePicker } from '../../../../common/FormsyDatePicker'
65
import { FormsyMaskedInput } from '../../../../common/FormsyMaskedInput'
76
import { wireUpCustomFormsyValidators } from '../../../../common/CustomValidators'
87
import {telephoneFormat} from '../../../../common/Formatters'
98

10-
119
class Contact extends Component {
1210
constructor() {
1311
super()
@@ -41,7 +39,7 @@ class Contact extends Component {
4139

4240
handleInputChange(event) {
4341
let value
44-
if(event.target.name === 'phone') {
42+
if (event.target.name === 'phone') {
4543
value = this.sanitizeToJustNumbers(event.target.value.toString())
4644
} else {
4745
value = event.target.value
@@ -73,7 +71,7 @@ class Contact extends Component {
7371
// Make switch statement
7472
if (keyName === 'phone') {
7573
value = this.sanitizeToJustNumbers(this.props.contact[keyName].toString())
76-
} else if (keyName === 'id'){
74+
} else if (keyName === 'id') {
7775
value = this.props.contact[keyName]
7876
} else {
7977
value = this.props.contact[keyName]
@@ -294,7 +292,9 @@ class Contact extends Component {
294292
</table>
295293

296294
<button className='btn btn-default btn-sm' type='submit'>SAVE</button>
297-
<button type='button' className='btn btn-default btn-sm' onClick={this.handleCancel.bind(this)}>CANCEL</button>
295+
<button type='button'
296+
className='btn btn-default btn-sm'
297+
onClick={this.handleCancel.bind(this)}>CANCEL</button>
298298

299299
</Formsy.Form>
300300

0 commit comments

Comments
 (0)