diff --git a/lib/manager/components/ProjectSettingsForm.js b/lib/manager/components/ProjectSettingsForm.js index 5024d5812..177983a06 100644 --- a/lib/manager/components/ProjectSettingsForm.js +++ b/lib/manager/components/ProjectSettingsForm.js @@ -185,6 +185,8 @@ export default class ProjectSettingsForm extends Component { this.setState(update(this.state, {model: {$merge: {defaultTimeZone}}})) } + // TODO: shared type + // https://github.com/ibi-group/datatools-ui/pull/986#discussion_r1362271761 _onChangeTextInput = ({target}: {target: {name?: string, value: string}}) => { const {name, value} = target if (!name) return @@ -340,11 +342,11 @@ export default class ProjectSettingsForm extends Component { see: https://github.com/ibi-group/datatools-ui/pull/977#discussion_r1288916749 */} this._onChangeTextInput(e)} - onSaveCsvData={() => { alert('save') }} + name={'sharedStopsConfig'} + onChangeCsvData={this._onChangeTextInput} + onSaveCsvData={() => {}} placeholder={`stop_group_id,feed_id,stop_id,is_primary\n1,1,29240,1\n1,3,4705,0`} /> diff --git a/lib/manager/components/transform/CustomCSVForm.js b/lib/manager/components/transform/CustomCSVForm.js index 0103da367..b4f25aa40 100644 --- a/lib/manager/components/transform/CustomCSVForm.js +++ b/lib/manager/components/transform/CustomCSVForm.js @@ -75,9 +75,11 @@ const CustomCSVForm = (props: Props) => {
{ + // TODO: use useCallback + // https://github.com/ibi-group/datatools-ui/pull/986#discussion_r1362276889 if (e.target && e.target.files.length > 0) { onChangeCsvData({target: {name, value: messages('uploading')}}) const reader = new FileReader()