chore: Update SettingsLayout.tsx (#17498)
* chore: Update SettingsLayout.tsx * Update settings layout app dir --------- Co-authored-by: hbjORbj <[email protected]>
This commit is contained in:
1 parent
8e7567b6a3
commit
ef0fd67646
2 files changed
+12
-6
No files matched your search
@@ -141,6 +141,9 @@ tabs.find((tab) => {
|
|||||||
// TODO: Enable dsync for self hosters
|
// TODO: Enable dsync for self hosters
|
||||||
// tab.children?.push({ name: "directory_sync", href: "/settings/security/dsync" });
|
// tab.children?.push({ name: "directory_sync", href: "/settings/security/dsync" });
|
||||||
}
|
}
|
||||||
|
if (tab.name === "admin" && IS_CALCOM) {
|
||||||
|
tab.children?.push({ name: "create_your_org", href: "/settings/organizations/new" });
|
||||||
|
}
|
||||||
if (tab.name === "admin" && IS_CALCOM) {
|
if (tab.name === "admin" && IS_CALCOM) {
|
||||||
tab.children?.push({ name: "create_license_key", href: "/settings/license-key/new" });
|
tab.children?.push({ name: "create_license_key", href: "/settings/license-key/new" });
|
||||||
}
|
}
|
||||||
@@ -228,7 +231,7 @@ const BackButtonInSidebar = ({ name }: { name: string }) => {
|
|||||||
data-testid={`vertical-tab-${name}`}>
|
data-testid={`vertical-tab-${name}`}>
|
||||||
<Icon
|
<Icon
|
||||||
name="arrow-left"
|
name="arrow-left"
|
||||||
className="h-4 w-4 stroke-[2px] md:mt-0 ltr:mr-[10px] rtl:ml-[10px] rtl:rotate-180"
|
className="h-4 w-4 stroke-[2px] ltr:mr-[10px] rtl:ml-[10px] rtl:rotate-180 md:mt-0"
|
||||||
/>
|
/>
|
||||||
<Skeleton title={name} as="p" className="min-h-4 max-w-36 truncate" loadingClassName="ms-3">
|
<Skeleton title={name} as="p" className="min-h-4 max-w-36 truncate" loadingClassName="ms-3">
|
||||||
{name}
|
{name}
|
||||||
@@ -313,7 +316,7 @@ const TeamListCollapsible = () => {
|
|||||||
{!team.parentId && (
|
{!team.parentId && (
|
||||||
<img
|
<img
|
||||||
src={getPlaceholderAvatar(team.logoUrl, team.name)}
|
src={getPlaceholderAvatar(team.logoUrl, team.name)}
|
||||||
className="h-[16px] w-[16px] self-start rounded-full stroke-[2px] md:mt-0 ltr:mr-2 rtl:ml-2"
|
className="h-[16px] w-[16px] self-start rounded-full stroke-[2px] ltr:mr-2 rtl:ml-2 md:mt-0"
|
||||||
alt={team.name || "Team logo"}
|
alt={team.name || "Team logo"}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
@@ -463,7 +466,7 @@ const SettingsSidebarContainer = ({
|
|||||||
{tab && tab.icon && (
|
{tab && tab.icon && (
|
||||||
<Icon
|
<Icon
|
||||||
name={tab.icon}
|
name={tab.icon}
|
||||||
className="text-subtle h-[16px] w-[16px] stroke-[2px] md:mt-0 ltr:mr-3 rtl:ml-3"
|
className="text-subtle h-[16px] w-[16px] stroke-[2px] ltr:mr-3 rtl:ml-3 md:mt-0"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{!tab.icon && tab?.avatar && (
|
{!tab.icon && tab?.avatar && (
|
||||||
@@ -508,7 +511,7 @@ const SettingsSidebarContainer = ({
|
|||||||
{tab && tab.icon && (
|
{tab && tab.icon && (
|
||||||
<Icon
|
<Icon
|
||||||
name={tab.icon}
|
name={tab.icon}
|
||||||
className="text-subtle h-[16px] w-[16px] stroke-[2px] md:mt-0 ltr:mr-3 rtl:ml-3"
|
className="text-subtle h-[16px] w-[16px] stroke-[2px] ltr:mr-3 rtl:ml-3 md:mt-0"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<Skeleton
|
<Skeleton
|
||||||
@@ -542,7 +545,7 @@ const SettingsSidebarContainer = ({
|
|||||||
{tab && tab.icon && (
|
{tab && tab.icon && (
|
||||||
<Icon
|
<Icon
|
||||||
name={tab.icon}
|
name={tab.icon}
|
||||||
className="text-subtle h-[16px] w-[16px] stroke-[2px] md:mt-0 ltr:mr-3 rtl:ml-3"
|
className="text-subtle h-[16px] w-[16px] stroke-[2px] ltr:mr-3 rtl:ml-3 md:mt-0"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<Skeleton
|
<Skeleton
|
||||||
@@ -597,7 +600,7 @@ const SettingsSidebarContainer = ({
|
|||||||
{!otherTeam.parentId && (
|
{!otherTeam.parentId && (
|
||||||
<img
|
<img
|
||||||
src={getPlaceholderAvatar(otherTeam.logoUrl, otherTeam.name)}
|
src={getPlaceholderAvatar(otherTeam.logoUrl, otherTeam.name)}
|
||||||
className="h-[16px] w-[16px] self-start rounded-full stroke-[2px] md:mt-0 ltr:mr-2 rtl:ml-2"
|
className="h-[16px] w-[16px] self-start rounded-full stroke-[2px] ltr:mr-2 rtl:ml-2 md:mt-0"
|
||||||
alt={otherTeam.name || "Team logo"}
|
alt={otherTeam.name || "Team logo"}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -140,6 +140,9 @@ tabs.find((tab) => {
|
|||||||
// TODO: Enable dsync for self hosters
|
// TODO: Enable dsync for self hosters
|
||||||
// tab.children?.push({ name: "directory_sync", href: "/settings/security/dsync" });
|
// tab.children?.push({ name: "directory_sync", href: "/settings/security/dsync" });
|
||||||
}
|
}
|
||||||
|
if (tab.name === "admin" && IS_CALCOM) {
|
||||||
|
tab.children?.push({ name: "create_your_org", href: "/settings/organizations/new" });
|
||||||
|
}
|
||||||
if (tab.name === "admin" && IS_CALCOM) {
|
if (tab.name === "admin" && IS_CALCOM) {
|
||||||
tab.children?.push({ name: "create_license_key", href: "/settings/license-key/new" });
|
tab.children?.push({ name: "create_license_key", href: "/settings/license-key/new" });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user