I have the code 
const [startTime, setStartTime] = useState("");
	const [endTime, setEndTime] = useState("");
const onChangeTime = (date, dateString) => {
		console.log(date, dateString);
		setStartTime(dateString[0]);
		setEndTime(dateString[1]);
	};

return (
<Row className="section-modal" style={{ marginTop: "1rem" }}>
									<Col
										span={24}
										style={{
											width: "90%",
											paddingLeft: "2rem",
											paddingRight: "2rem",
										}}
									>
										<p>HORARIOS DE USO:</p>

										<div className="time_days">
											<p>Lunes:</p>
											<TimePicker.RangePicker
												format="HH:mm"
												onChange={onChangeTime}
											/>
										</div>
										<div className="time_days">
											<p>Martes:</p>
											<TimePicker.RangePicker
												format="HH:mm"
												onChange={onChangeTime}
											/>
										</div>
										<div className="time_days">
											<p>Miércoles:</p>
											<TimePicker.RangePicker
												format="HH:mm"
												onChange={onChangeTime}
											/>
										</div>
										<div className="time_days">
											<p>Jueves:</p>
											<TimePicker.RangePicker
												format="HH:mm"
												onChange={onChangeTime}
											/>
										</div>
										<div className="time_days">
											<p>Viernes:</p>
											<TimePicker.RangePicker
												format="HH:mm"
												onChange={onChangeTime}
											/>
										</div>
										<div className="time_days">
											<p>Sábado:</p>
											<TimePicker.RangePicker
												format="HH:mm"
												onChange={onChangeTime}
											/>
										</div>
										<div className="time_days">
											<p>Domingo:</p>
											<TimePicker.RangePicker
												format="HH:mm"
												onChange={onChangeTime}
											/>
										</div>
									</Col>
								</Row>
)
modify it so I have a function that handles all of the days start and end times without having to write a function for each day in react, components are from antd