chore(create-notification): remove un-used prop
This commit is contained in:
parent
f170d4a65f
commit
961d5bd5cc
2 changed files with 1 additions and 7 deletions
|
|
@ -30,7 +30,6 @@ type Props = {
|
|||
mode?: "create" | "update";
|
||||
initialValues?: Partial<NotificationFormValues>;
|
||||
formId?: string;
|
||||
loading?: boolean;
|
||||
className?: string;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue