Revert changes
This commit is contained in:
parent
47ed7adbea
commit
e43c3e6c96
|
@ -170,7 +170,7 @@ function EventTypeSingleLayout({
|
|||
|
||||
// Define tab navigation here
|
||||
const EventTypeTabs = useMemo(() => {
|
||||
let navigation = getNavigation({
|
||||
const navigation = getNavigation({
|
||||
t,
|
||||
eventType,
|
||||
enabledAppsNumber,
|
||||
|
@ -209,9 +209,9 @@ function EventTypeSingleLayout({
|
|||
});
|
||||
}
|
||||
if (isManagedEventType || isChildrenManagedEventType) {
|
||||
// Removing apps and workflows for managed event types by admins v1
|
||||
navigation = navigation.slice(0, -2);
|
||||
} else if (team) {
|
||||
// Removing apps and workflows for manageg event types by admins v1
|
||||
navigation.splice(-2, 1);
|
||||
} else {
|
||||
navigation.push({
|
||||
name: "webhooks",
|
||||
href: `/event-types/${eventType.id}?tabName=webhooks`,
|
||||
|
@ -238,7 +238,7 @@ function EventTypeSingleLayout({
|
|||
<div className="flex items-center justify-end">
|
||||
{!eventType.metadata.managedEventConfig && (
|
||||
<>
|
||||
<div className="sm:hover:bg-subtle hidden items-center rounded-md px-2 lg:flex">
|
||||
<div className="sm:hover:bg-muted hidden items-center rounded-md px-2 lg:flex">
|
||||
<Skeleton
|
||||
as={Label}
|
||||
htmlFor="hiddenSwitch"
|
||||
|
|
Loading…
Reference in New Issue
Block a user