style: display private

style changes to display private events
This commit is contained in:
cv
2021-06-10 21:00:53 +02:00
parent 3bb1292a90
commit 256c33393c
3 changed files with 32 additions and 12 deletions
@@ -1,7 +1,7 @@
import { stringFromMillis } from 'common/dateConfig';
import style from './Paginator.module.css';
export default function TodayItem(props) {
const { selected, timeStart, timeEnd, title } = props;
const { selected, timeStart, timeEnd, title, backstageEvent } = props;
// Format timers
const start = stringFromMillis(timeStart, false) || '';
@@ -13,9 +13,13 @@ export default function TodayItem(props) {
else if (selected === 2) selectStyle = style.entryFuture;
return (
<div className={selectStyle}>
<div className={style.entryStart}>{start}</div>
<div className={style.entryEnd}>{end}</div>
<div
className={`${style.entryTimes} ${
backstageEvent ? style.backstage : undefined
}`}
>{`${start} · ${end}`}</div>
<div className={style.entryTitle}>{title}</div>
{backstageEvent && <div className={style.backstageInd}></div>}
</div>
);
}