functionally completed user editing

This commit is contained in:
z1glr
2025-01-12 02:01:14 +00:00
parent ac6bf24d57
commit 0685283007
18 changed files with 410 additions and 132 deletions

View File

@@ -33,6 +33,7 @@ export default function AddEvent(props: {
className?: string;
isOpen: boolean;
onOpenChange: (isOpen: boolean) => void;
onSuccess?: () => void;
}) {
// initial state for the inputs
const initialState: state = {
@@ -73,6 +74,8 @@ export default function AddEvent(props: {
zustand.getState().setEvents(await result.json());
props.onOpenChange(false);
props.onSuccess?.();
}
}