fix (#25818)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
import { AnimatePresence, motion } from "framer-motion";
|
||||
import { usePathname } from "next/navigation";
|
||||
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { subdomainSuffix } from "@calcom/features/ee/organizations/lib/orgDomains";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Avatar } from "@calcom/ui/components/avatar";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
@@ -13,6 +13,7 @@ type OnboardingTeamsBrowserViewProps = {
|
||||
organizationLogo?: string | null;
|
||||
organizationName?: string;
|
||||
organizationBanner?: string | null;
|
||||
slug?: string;
|
||||
};
|
||||
|
||||
export const OnboardingTeamsBrowserView = ({
|
||||
@@ -20,10 +21,11 @@ export const OnboardingTeamsBrowserView = ({
|
||||
organizationLogo,
|
||||
organizationName,
|
||||
organizationBanner,
|
||||
slug,
|
||||
}: OnboardingTeamsBrowserViewProps) => {
|
||||
const pathname = usePathname();
|
||||
const { t } = useLocale();
|
||||
const webappUrl = WEBAPP_URL.replace(/^https?:\/\//, "");
|
||||
const displayUrl = slug ? `${slug}.${subdomainSuffix()}` : subdomainSuffix();
|
||||
|
||||
// Show placeholder if no teams or all teams are empty
|
||||
const hasValidTeams = teams.some((team) => team.name && team.name.trim().length > 0);
|
||||
@@ -54,9 +56,9 @@ export const OnboardingTeamsBrowserView = ({
|
||||
<Icon name="arrow-right" className="text-subtle h-4 w-4" />
|
||||
<Icon name="rotate-cw" className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
<div className="bg-cal-muted flex w-full items-center gap-2 rounded-[32px] px-3 py-2">
|
||||
<div className="bg-cal-muted flex w-full min-w-0 items-center gap-2 rounded-[32px] px-3 py-2">
|
||||
<Icon name="lock" className="text-subtle h-4 w-4" />
|
||||
<p className="text-default text-sm font-medium leading-tight">{webappUrl}/teams</p>
|
||||
<p className="text-default truncate text-sm font-medium leading-tight">{displayUrl}/teams</p>
|
||||
</div>
|
||||
<Icon name="ellipsis-vertical" className="text-subtle h-4 w-4" />
|
||||
</div>
|
||||
|
||||
@@ -150,6 +150,7 @@ export const OrganizationTeamsView = ({ userEmail }: OrganizationTeamsViewProps)
|
||||
organizationLogo={organizationBrand.logo}
|
||||
organizationName={organizationDetails.name}
|
||||
organizationBanner={organizationBrand.banner}
|
||||
slug={organizationDetails.link}
|
||||
/>
|
||||
</OnboardingLayout>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user