cleanup(attributes): remove entrypoints (#29034)
* refactor: remove attributes and segments entrypoints * fix: restore segment entrypoints * cleanup
This commit is contained in:
1 parent
46eb533dbd
commit
a4a01a0fa8
4 files changed
+5
-20
No files matched your search
-9
@@ -265,7 +265,6 @@ interface SettingsPermissions {
|
||||
canViewRoles?: boolean;
|
||||
canViewOrganizationBilling?: boolean;
|
||||
canUpdateOrganization?: boolean;
|
||||
canViewAttributes?: boolean;
|
||||
}
|
||||
|
||||
const useTabs = ({
|
||||
@@ -296,14 +295,6 @@ const useTabs = ({
|
||||
(child) => permissions?.canUpdateOrganization || !organizationAdminKeys.includes(child.name)
|
||||
);
|
||||
|
||||
if (permissions?.canViewAttributes) {
|
||||
newArray.splice(4, 0, {
|
||||
name: "attributes",
|
||||
href: "/settings/organizations/attributes",
|
||||
trackingMetadata: { section: "organization", page: "attributes" },
|
||||
});
|
||||
}
|
||||
|
||||
// Add delegation-credential menu item only if feature flag is enabled
|
||||
if (isDelegationCredentialEnabled) {
|
||||
newArray.push({
|
||||
|
||||
@@ -20,7 +20,6 @@ export default async function SettingsLayoutAppDir(props: SettingsLayoutProps) {
|
||||
canViewRoles: false,
|
||||
canViewOrganizationBilling: false,
|
||||
canUpdateOrganization: false,
|
||||
canViewAttributes: false,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user