chore(create-notification): remove un-used prop

This commit is contained in:
Nicolas Meienberger 2025-11-30 16:41:10 +01:00
parent f170d4a65f
commit 961d5bd5cc
2 changed files with 1 additions and 7 deletions

View file

@ -30,7 +30,6 @@ type Props = {
mode?: "create" | "update"; mode?: "create" | "update";
initialValues?: Partial<NotificationFormValues>; initialValues?: Partial<NotificationFormValues>;
formId?: string; formId?: string;
loading?: boolean;
className?: string; className?: string;
}; };

View file

@ -62,12 +62,7 @@ export default function CreateNotification() {
</AlertDescription> </AlertDescription>
</Alert> </Alert>
)} )}
<CreateNotificationForm <CreateNotificationForm mode="create" formId={formId} onSubmit={handleSubmit} />
mode="create"
formId={formId}
onSubmit={handleSubmit}
loading={createNotification.isPending}
/>
<div className="flex justify-end gap-2 pt-4 border-t"> <div className="flex justify-end gap-2 pt-4 border-t">
<Button type="button" variant="secondary" onClick={() => navigate("/notifications")}> <Button type="button" variant="secondary" onClick={() => navigate("/notifications")}>
Cancel Cancel