style: show event title in info panel (#467)

This commit is contained in:
Carlos Valente
2023-07-23 15:41:58 +02:00
committed by GitHub
parent 60799d3d88
commit e49918e8bb
3 changed files with 30 additions and 9 deletions
@@ -0,0 +1,14 @@
import useEventData from '../../../common/hooks-query/useEventData';
import style from '../Info.module.scss';
export default function InfoHeader({ selected }: { selected: string }) {
const { data } = useEventData();
return (
<div className={style.panelHeader}>
<span className={style.title}>{data?.title || ''}</span>
<span className={style.selected}>{selected}</span>
</div>
);
}