refract make reusable components

This commit is contained in:
cv
2021-04-10 22:21:01 +02:00
parent e51f3e6cd5
commit 54d19d729b
15 changed files with 311 additions and 160 deletions
@@ -0,0 +1,24 @@
import EditableTimer from '../../input/EditableTimer';
import DelayValue from '../../input/DelayValue';
export default function EventTimes(props) {
const { updateValues, delay, timeStart, timeEnd } = props;
return (
<>
<EditableTimer
name='timeStart'
updateValues={updateValues}
time={timeStart}
delay={delay}
/>
<EditableTimer
name='timeEnd'
updateValues={updateValues}
time={timeEnd}
delay={delay}
/>
<DelayValue delay={delay} />
</>
);
}