Skip to content

Commit

Permalink
Use placeholder for new participant input (#153)
Browse files Browse the repository at this point in the history
* use placeholder for new participant

* Fix formatting

---------

Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
  • Loading branch information
owiber and scastiel committed May 30, 2024
1 parent e619c1a commit 3887efd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/group-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -228,7 +232,7 @@ export function GroupForm({
<Button
variant="secondary"
onClick={() => {
append({ name: 'New' })
append({ name: '' })
}}
type="button"
>
Expand Down

0 comments on commit 3887efd

Please sign in to comment.