chore: revamp the API tokens workflow (#2880)

* chore: added getLayout method to api tokens pages

* revamp: api tokens workflow

* chore: add title validation and update types

* chore: minor UI updates

* chore: update route
This commit is contained in:
Aaryan Khandelwal 2023-11-27 12:14:06 +05:30 committed by sriram veeraghanta
parent 7b5eea8722
commit 7ad0360920
25 changed files with 711 additions and 747 deletions

View file

@ -33,7 +33,7 @@ export const WorkspaceSettingsSidebar = () => {
access: EUserWorkspaceRoles.GUEST,
},
{
label: "Billing & Plans",
label: "Billing and plans",
href: `/${workspaceSlug}/settings/billing`,
access: EUserWorkspaceRoles.ADMIN,
},
@ -45,12 +45,12 @@ export const WorkspaceSettingsSidebar = () => {
{
label: "Imports",
href: `/${workspaceSlug}/settings/imports`,
access: EUserWorkspaceRoles.GUEST,
access: EUserWorkspaceRoles.ADMIN,
},
{
label: "Exports",
href: `/${workspaceSlug}/settings/exports`,
access: EUserWorkspaceRoles.GUEST,
access: EUserWorkspaceRoles.ADMIN,
},
{
label: "Webhooks",
@ -58,9 +58,9 @@ export const WorkspaceSettingsSidebar = () => {
access: EUserWorkspaceRoles.ADMIN,
},
{
label: "API Tokens",
label: "API tokens",
href: `/${workspaceSlug}/settings/api-tokens`,
access: EUserWorkspaceRoles.GUEST,
access: EUserWorkspaceRoles.ADMIN,
},
];