Show textarea even if description is blank

Now you can add description to a list that doesn't have one yet!
This commit is contained in:
Emi Matchu 2021-06-19 09:46:53 -07:00
parent d91492ab66
commit 4903eb8d21

View file

@ -329,12 +329,13 @@ export function ClosetList({
</Wrap> </Wrap>
)} )}
<Box height="2" /> <Box height="2" />
{closetList.description && ( {(closetList.description || isEditing) && (
<Box marginBottom="2"> <Box marginBottom="2">
{isEditing ? ( {isEditing ? (
<Textarea <Textarea
value={editableDescription} value={editableDescription}
onChange={(e) => setEditableDescription(e.target.value)} onChange={(e) => setEditableDescription(e.target.value)}
placeholder="This is my list! I'm looking for…"
// Shift left by our own padding/border, for alignment with the // Shift left by our own padding/border, for alignment with the
// original title // original title
paddingX="0.75rem" paddingX="0.75rem"