fixed Form alignment for edit webhook page. (#5793)

* fixed  Form alignment for edit webhook page.

* minor fix
This commit is contained in:
yug-shah0106 2022-06-30 16:37:51 +05:30 committed by GitHub
parent 00e25ade91
commit 006b1fe1a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,21 +98,23 @@ const EditWebhookPage: FunctionComponent = () => {
return ( return (
<PageContainerV1> <PageContainerV1>
{!isLoading ? ( <div className="tw-self-center">
<AddWebhook {!isLoading ? (
allowAccess={isAdminUser || isAuthDisabled} <AddWebhook
data={webhookData} allowAccess={isAdminUser || isAuthDisabled}
deleteState={deleteStatus} data={webhookData}
header="Edit Webhook" deleteState={deleteStatus}
mode={FormSubmitType.EDIT} header="Edit Webhook"
saveState={status} mode={FormSubmitType.EDIT}
onCancel={handleCancel} saveState={status}
onDelete={handleDelete} onCancel={handleCancel}
onSave={handleSave} onDelete={handleDelete}
/> onSave={handleSave}
) : ( />
<Loader /> ) : (
)} <Loader />
)}
</div>
</PageContainerV1> </PageContainerV1>
); );
}; };