style cleanup + tweaks

Title <> Subtitle relationships
Animat ein
This commit is contained in:
cv
2021-04-26 13:38:30 +02:00
parent 9f0f9752ae
commit 004b31b5e7
19 changed files with 404 additions and 254 deletions
@@ -11,7 +11,6 @@ import DeleteIconBtn from '../../../common/components/buttons/DeleteIconBtn';
export default function EventBlock(props) {
const { data, selected, next, delay, index, eventsHandler } = props;
const [visible, setVisible] = useState(false);
const [more, setMore] = useState(false);
@@ -53,6 +52,11 @@ export default function EventBlock(props) {
updateValues('presenter', v);
};
const handleVisibleToggle = (v) => {
// setVisible(previousState => !previousState);
updateValues('isPublic', !data.isPublic);
};
return (
<div className={selected ? style.eventRowActive : style.eventRow}>
<span className={style.drag}>
@@ -110,8 +114,8 @@ export default function EventBlock(props) {
</div>
<div className={style.actionOverlay}>
<VisibleIconBtn
clickhandler={() => setVisible(!visible)}
active={visible || undefined}
clickhandler={handleVisibleToggle}
active={data.isPublic}
/>
<DeleteIconBtn clickhandler={deleteHandler} />
<ActionButtons