feat: insights routing forms (#17583)

Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
sean-brydonandJoe Au-Yeung authored and GitHub committed 2024-11-15 14:54:51 -05:00
1 parent e85c0e1a85
commit 7ce5886b4f
34 files changed
+2762 -870

No files matched your search

+3 -3
View File
@@ -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}</>;