Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Mar 5, 2024
1 parent 9105ff3 commit c232a23
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/components/Inputs/EndDate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const DATATEST = 'input-end-date'
const LABEL = i18n.t('End date')
const VALIDATOR = composeValidators(hasValue, DATE_VALIDATOR)

const EndDate = ({name, label}) => (
const EndDate = ({ name, label }) => (
<DatePickerField
name={name ?? NAME}
validator={VALIDATOR}
Expand All @@ -21,7 +21,7 @@ const EndDate = ({name, label}) => (

EndDate.propTypes = {
label: PropTypes.string,
name: PropTypes.string
name: PropTypes.string,
}

export { EndDate }
5 changes: 2 additions & 3 deletions src/components/Inputs/StartDate.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ import React from 'react'
import { DATE_VALIDATOR } from '../DatePicker/DatePickerField.js'
import { DatePickerField } from '../index.js'


const NAME = 'startDate'
const DATATEST = 'input-start-date'
const LABEL = i18n.t('Start date')
const VALIDATOR = composeValidators(hasValue, DATE_VALIDATOR)

const StartDate = ({name, label}) => (
const StartDate = ({ name, label }) => (
<DatePickerField
name={name ?? NAME}
validator={VALIDATOR}
Expand All @@ -22,6 +21,6 @@ const StartDate = ({name, label}) => (

StartDate.propTypes = {
label: PropTypes.string,
name: PropTypes.string
name: PropTypes.string,
}
export { StartDate }
2 changes: 1 addition & 1 deletion src/pages/EventExport/EventExport.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const initialValues = {
orgUnitIdScheme: defaultOrgUnitIdSchemeOption,
idScheme: defaultIdSchemeOption,
inclusion: defaultInclusionOption,
skipPaging: true
skipPaging: true,
}

const EventExport = () => {
Expand Down
3 changes: 2 additions & 1 deletion src/pages/EventImport/form-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ const onImport =
type: 'TRACKER_IMPORT_JOB',
isAsync,
setProgress,
addEntry: (id, entry) => addTask('event', id, { ...entry, jobDetails: values })
addEntry: (id, entry) =>
addTask('event', id, { ...entry, jobDetails: values }),
})
return jobStartedMessage
} catch (e) {
Expand Down
4 changes: 1 addition & 3 deletions src/pages/TEIExport/TEIExport.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ const TEIExport = () => {
</MoreOptions>
<ValidationSummary />
<ExportButton
label={i18n.t(
'Export tracked entities'
)}
label={i18n.t('Export tracked entities')}
disabled={!exportEnabled}
/>
<FormAlerts alerts={submitError} />
Expand Down
4 changes: 2 additions & 2 deletions src/pages/TEIExport/form-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const valuesToParams = (
orgUnitIdScheme: orgUnitIdScheme,
idScheme: idScheme,
attachment: filename,
skipPaging: true
skipPaging: true,
}

// include selected org.units only when manual selection is selected
Expand Down Expand Up @@ -72,7 +72,7 @@ const valuesToParams = (

console.log('>>>>>', followup, minParams.followup)

if(followup !== 'ALL') {
if (followup !== 'ALL') {
minParams.followup = followup
}

Expand Down
5 changes: 2 additions & 3 deletions src/pages/TEIImport/form-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ const onImport =
isAsync: isAsync,
setProgress,
addEntry: (id, entry) => {
addTask('tei', id, { ...entry, jobDetails: values });
}

addTask('tei', id, { ...entry, jobDetails: values })
},
})
return jobStartedMessage
} catch (e) {
Expand Down

0 comments on commit c232a23

Please sign in to comment.