Skip to content

Scheduling infrastructure for absolutely everyone.

remove isPro check (#8967)

Rama Krishna Reddy12cea947ec66
diff --git a/apps/web/components/apps/App.tsx b/apps/web/components/apps/App.tsx
index 5f2306b2b38..3f866ebee59 100644
--- a/apps/web/components/apps/App.tsx
+++ b/apps/web/components/apps/App.tsx
@@ -35,7 +35,6 @@ const Component = ({
email,
tos,
privacy,
- isProOnly,
teamsPlanRequired,
descriptionItems,
isTemplate,
@@ -151,7 +150,6 @@ const Component = ({
{!isGlobal && (
<InstallAppButton
type={type}
- isProOnly={isProOnly}
disableInstall={disableInstall}
teamsPlanRequired={teamsPlanRequired}
render={({ useDefaultComponent, ...props }) => {
@@ -192,7 +190,6 @@ const Component = ({
) : (
<InstallAppButton
type={type}
- isProOnly={isProOnly}
disableInstall={disableInstall}
teamsPlanRequired={teamsPlanRequired}
render={({ useDefaultComponent, ...props }) => {
@@ -362,7 +359,6 @@ export default function App(props: {
tos?: string;
privacy?: string;
licenseRequired: AppType["licenseRequired"];
- isProOnly: AppType["isProOnly"];
teamsPlanRequired: AppType["teamsPlanRequired"];
descriptionItems?: Array<string | { iframe: IframeHTMLAttributes<HTMLIFrameElement> }>;
isTemplate?: boolean;
diff --git a/apps/web/pages/apps/[slug]/index.tsx b/apps/web/pages/apps/[slug]/index.tsx
index 841331f5d95..97a36bf74c1 100644
--- a/apps/web/pages/apps/[slug]/index.tsx
+++ b/apps/web/pages/apps/[slug]/index.tsx
@@ -73,7 +73,6 @@ function SingleAppPage(props: inferSSRProps<typeof getStaticProps>) {
email={data.email}
licenseRequired={data.licenseRequired}
teamsPlanRequired={data.teamsPlanRequired}
- isProOnly={data.isProOnly}
descriptionItems={source.data?.items as string[] | undefined}
isTemplate={data.isTemplate}
dependencies={data.dependencies}
diff --git a/packages/app-store/_components/OmniInstallAppButton.tsx b/packages/app-store/_components/OmniInstallAppButton.tsx
index e181d4f3621..311976e30f0 100644
--- a/packages/app-store/_components/OmniInstallAppButton.tsx
+++ b/packages/app-store/_components/OmniInstallAppButton.tsx
@@ -46,7 +46,6 @@ export default function OmniInstallAppButton({
return (
<InstallAppButton
type={app.type}
- isProOnly={app.isProOnly}
teamsPlanRequired={app.teamsPlanRequired}
wrapperClassName={classNames("[@media(max-width:260px)]:w-full", className)}
render={({ useDefaultComponent, ...props }) => {
diff --git a/packages/app-store/components.tsx b/packages/app-store/components.tsx
index 673fdcea98e..f0ccf42598d 100644
--- a/packages/app-store/components.tsx
+++ b/packages/app-store/components.tsx
@@ -49,7 +49,6 @@ export const InstallAppButtonWithoutPlanCheck = (
export const InstallAppButton = (
props: {
- isProOnly?: App["isProOnly"];
teamsPlanRequired?: App["teamsPlanRequired"];
type: App["type"];
wrapperClassName?: string;
@@ -86,7 +85,7 @@ export const InstallAppButton = (
},
true
);
- }, [isUserLoading, user, router, props.isProOnly, hasTeamPlan, props.teamsPlanRequired]);
+ }, [isUserLoading, user, router, hasTeamPlan, props.teamsPlanRequired]);
if (isUserLoading || isTeamPlanStatusLoading) {
return null;
diff --git a/packages/types/App.d.ts b/packages/types/App.d.ts
index 49e62fa4b02..56381f73864 100644
--- a/packages/types/App.d.ts
+++ b/packages/types/App.d.ts
@@ -129,7 +129,6 @@ export interface App {
teamsPlanRequired?: {
upgradeUrl: string;
};
- isProOnly?: boolean;
appData?: AppData;
/**
* @deprecated
diff --git a/packages/ui/components/apps/AppCard.tsx b/packages/ui/components/apps/AppCard.tsx
index d23a4722f98..302909b1a17 100644
--- a/packages/ui/components/apps/AppCard.tsx
+++ b/packages/ui/components/apps/AppCard.tsx
@@ -96,7 +96,6 @@ export function AppCard({ app, credentials, searchText }: AppCardProps) {
? !app.isGlobal && (
<InstallAppButton
type={app.type}
- isProOnly={app.isProOnly}
teamsPlanRequired={app.teamsPlanRequired}
disableInstall={!!app.dependencies && !app.dependencyData?.some((data) => !data.installed)}
wrapperClassName="[@media(max-width:260px)]:w-full"
@@ -125,7 +124,6 @@ export function AppCard({ app, credentials, searchText }: AppCardProps) {
credentials.length === 0 && (
<InstallAppButton
type={app.type}
- isProOnly={app.isProOnly}
wrapperClassName="[@media(max-width:260px)]:w-full"
disableInstall={!!app.dependencies && app.dependencyData?.some((data) => !data.installed)}
teamsPlanRequired={app.teamsPlanRequired}