Reimplemented rooms with live update

This commit is contained in:
pascalyazid committed 2026-05-15 18:37:46 +02:00
1 parent 347f4b0999
commit 94c544b161
7 files changed
+25 -23

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ import { addMemberAction, type AddMemberState } from "./actions";
const initialState: AddMemberState = null;
export function AddMemberForm({ roomId }: { roomId: string }) {
export function AddMemberForm({ roomId }: Readonly<{ roomId: string }>) {
const boundAction = addMemberAction.bind(null, roomId);
const [state, action, pending] = useActionState(boundAction, initialState);