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";
|
mode?: "create" | "update";
|
||||||
initialValues?: Partial<NotificationFormValues>;
|
initialValues?: Partial<NotificationFormValues>;
|
||||||
formId?: string;
|
formId?: string;
|
||||||
loading?: boolean;
|
|
||||||
className?: string;
|
className?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue