fix: project setting ui consistency (#2835)

This commit is contained in:
Anmol Singh Bhatia 2023-11-22 15:36:34 +05:30 committed by GitHub
parent 644b06749b
commit 0fdd9c28bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,10 +63,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
return projectStore return projectStore
.updateProject(workspaceSlug.toString(), project.id, payload) .updateProject(workspaceSlug.toString(), project.id, payload)
.then((res) => { .then((res) => {
trackEvent( trackEvent("UPDATE_PROJECT", res);
'UPDATE_PROJECT',
res
);
setToastAlert({ setToastAlert({
type: "success", type: "success",
title: "Success!", title: "Success!",
@ -74,9 +71,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
}); });
}) })
.catch((error) => { .catch((error) => {
trackEvent( trackEvent("UPDATE_PROJECT/FAIL");
'UPDATE_PROJECT/FAIL',
);
setToastAlert({ setToastAlert({
type: "error", type: "error",
title: "Error!", title: "Error!",
@ -261,7 +256,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
value={value} value={value}
onChange={onChange} onChange={onChange}
label={selectedNetwork?.label ?? "Select network"} label={selectedNetwork?.label ?? "Select network"}
className="!border-custom-border-200 !shadow-none font-medium" buttonClassName="!border-custom-border-200 !shadow-none font-medium rounded-md"
input input
disabled={!isAdmin} disabled={!isAdmin}
optionsClassName="w-full" optionsClassName="w-full"