Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148783 | Nov 4,2019 01:46 PM UTC | Nov 7,2019 12:01 PM UTC | React - EJ 2 | 3 |
![]() |
Tags: Schedule |
eventTemplate (props: Object) {
const taskType = getLodash(props, 'type');
if (props.taskType === 'task') {
return (
<div className={styles.taskBarTemplate}
style={{ background: props.statusColor }}>
{props.taskAtRisk ? <div className={styles.cornIconMargin}>
<CornWarning/></div> : null}
<div className={styles.nameTimeMargin}>
<div className={styles.nameFont}>{props.tId}</div>
<div>
{moment(props.startTime).format('h:mm a')} - {
moment(props.endTime).format('h:mm a')}
</div>
</div>
</div>
);
} else if (props.taskType === 'breakTime') {
return (
<div className={styles.breakTimeTemplate}>
{<BreakTime/>}
</div>
);
} else if (props.taskType === 'travelTime') {
return /*There i want to change library CSS .So that if props.taskType === "travleTime" it will change library CSS only for that.
}
}
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.