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";
initialValues?: Partial<NotificationFormValues>;
formId?: string;
loading?: boolean;
className?: string;
};

View file

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