remove isPro check (#8967)
* remove isPro check * remove isPro check * checkout yarn.lock from main * checkout yarn.lock from main * Update _getAdd.ts * Update common.json * Revert the revert that got merged in main already --------- Co-authored-by: rkreddy99 <[email protected]> Co-authored-by: Hariom Balhara <[email protected]>
This commit is contained in:
6 files changed
+1
-11
No files matched your search
@@ -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 }) => {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Vendored
-1
@@ -129,7 +129,6 @@ export interface App {
|
||||
teamsPlanRequired?: {
|
||||
upgradeUrl: string;
|
||||
};
|
||||
isProOnly?: boolean;
|
||||
appData?: AppData;
|
||||
/**
|
||||
* @deprecated
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user