feat: insights routing forms (#17583)
Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
1 parent
e85c0e1a85
commit
7ce5886b4f
34 files changed
+2762
-870
No files matched your search
@@ -23,7 +23,7 @@ export function UpgradeTip({
|
||||
features: Array<{ icon: JSX.Element; title: string; description: string }>;
|
||||
buttons?: JSX.Element;
|
||||
/**Chldren renders when the user is in a team */
|
||||
children: JSX.Element;
|
||||
children: ReactNode;
|
||||
isParentLoading?: ReactNode;
|
||||
plan: "team" | "enterprise";
|
||||
}) {
|
||||
@@ -38,9 +38,9 @@ export function UpgradeTip({
|
||||
|
||||
const hasUnpublishedTeam = !!data?.[0];
|
||||
|
||||
if (plan === "team" && (hasTeamPlan || hasUnpublishedTeam)) return children;
|
||||
if (plan === "team" && (hasTeamPlan || hasUnpublishedTeam)) return <>{children}</>;
|
||||
|
||||
if (plan === "enterprise" && hasEnterprisePlan) return children;
|
||||
if (plan === "enterprise" && hasEnterprisePlan) return <>{children}</>;
|
||||
|
||||
if (isPending) return <>{isParentLoading}</>;
|
||||
|
||||
|
||||
Reference in new issue
Block a user