Skip to content

Commit dd8955c

Browse files
committed
fix chatroom create default to "New Chatroom"
1 parent e31dedd commit dd8955c

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

app/classrooms/[classroomId]/chatrooms/_components/create-chatroom-dialog.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,13 @@ export function CreateChatroomDialog({ classroomId }: { classroomId: string }) {
5555
<Label htmlFor="chatroom-name" className="text-right">
5656
Name
5757
</Label>
58-
<Input
59-
id="chatroom-name"
60-
name="name"
61-
defaultValue="New Chatroom"
62-
className="col-span-3"
63-
required
64-
/>
58+
<Input name="chatroom-name" className="col-span-3" required />
6559
</div>
6660
<input
67-
type="text"
61+
type="hidden"
6862
name="classroom_id"
6963
defaultValue={classroomId}
7064
readOnly
71-
hidden
7265
required
7366
/>
7467
<DialogFooter>

0 commit comments

Comments
 (0)