From f70d92df7e8145b3770ab224169033c403b3662a Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Sun, 3 Oct 2021 13:32:04 +0100 Subject: [PATCH] added edit icon to event-type title input to make editing more obvious (#848) --- pages/event-types/[type].tsx | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/pages/event-types/[type].tsx b/pages/event-types/[type].tsx index 0dd007c9..126ced77 100644 --- a/pages/event-types/[type].tsx +++ b/pages/event-types/[type].tsx @@ -8,6 +8,7 @@ import { ExternalLinkIcon, LinkIcon, LocationMarkerIcon, + PencilAltIcon, PlusIcon, TrashIcon, UserAddIcon, @@ -115,6 +116,9 @@ const EventTypePage = (props: inferSSRProps) => { }); const [users, setUsers] = useState([]); + + const [editIcon, setEditIcon] = useState(true); + const [enteredAvailability, setEnteredAvailability] = useState(); const [showLocationModal, setShowLocationModal] = useState(false); const [showAddCustomModal, setShowAddCustomModal] = useState(false); @@ -358,16 +362,24 @@ const EventTypePage = (props: inferSSRProps) => { +
setEditIcon(false)}> + + {editIcon && ( + + )} +
} subtitle={eventType.description || ""}>