Use placeholder for new participant input (#153)

* use placeholder for new participant

* Fix formatting

---------

Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
This commit is contained in:
Oliver Wong
2024-05-29 19:11:24 -07:00
committed by GitHub
parent e619c1a5b4
commit 3887efd9ee

View File

@@ -180,7 +180,11 @@ export function GroupForm({
</FormLabel>
<FormControl>
<div className="flex gap-2">
<Input className="text-base" {...field} />
<Input
className="text-base"
{...field}
placeholder="New"
/>
{item.id &&
protectedParticipantIds.includes(item.id) ? (
<HoverCard>
@@ -228,7 +232,7 @@ export function GroupForm({
<Button
variant="secondary"
onClick={() => {
append({ name: 'New' })
append({ name: '' })
}}
type="button"
>