mirror of
https://github.com/spliit-app/spliit.git
synced 2026-03-05 20:26:11 +01:00
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:
@@ -180,7 +180,11 @@ export function GroupForm({
|
|||||||
</FormLabel>
|
</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<div className="flex gap-2">
|
<div className="flex gap-2">
|
||||||
<Input className="text-base" {...field} />
|
<Input
|
||||||
|
className="text-base"
|
||||||
|
{...field}
|
||||||
|
placeholder="New"
|
||||||
|
/>
|
||||||
{item.id &&
|
{item.id &&
|
||||||
protectedParticipantIds.includes(item.id) ? (
|
protectedParticipantIds.includes(item.id) ? (
|
||||||
<HoverCard>
|
<HoverCard>
|
||||||
@@ -228,7 +232,7 @@ export function GroupForm({
|
|||||||
<Button
|
<Button
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
append({ name: 'New' })
|
append({ name: '' })
|
||||||
}}
|
}}
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user