mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 13:23:35 +00:00
refract make reusable components
This commit is contained in:
@@ -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} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user