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 <rreddy@e2clouds.com> Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
This commit is contained in:
parent
6aae976a5f
commit
12cea947ec
|
@ -35,7 +35,6 @@ const Component = ({
|
||||||
email,
|
email,
|
||||||
tos,
|
tos,
|
||||||
privacy,
|
privacy,
|
||||||
isProOnly,
|
|
||||||
teamsPlanRequired,
|
teamsPlanRequired,
|
||||||
descriptionItems,
|
descriptionItems,
|
||||||
isTemplate,
|
isTemplate,
|
||||||
|
@ -151,7 +150,6 @@ const Component = ({
|
||||||
{!isGlobal && (
|
{!isGlobal && (
|
||||||
<InstallAppButton
|
<InstallAppButton
|
||||||
type={type}
|
type={type}
|
||||||
isProOnly={isProOnly}
|
|
||||||
disableInstall={disableInstall}
|
disableInstall={disableInstall}
|
||||||
teamsPlanRequired={teamsPlanRequired}
|
teamsPlanRequired={teamsPlanRequired}
|
||||||
render={({ useDefaultComponent, ...props }) => {
|
render={({ useDefaultComponent, ...props }) => {
|
||||||
|
@ -192,7 +190,6 @@ const Component = ({
|
||||||
) : (
|
) : (
|
||||||
<InstallAppButton
|
<InstallAppButton
|
||||||
type={type}
|
type={type}
|
||||||
isProOnly={isProOnly}
|
|
||||||
disableInstall={disableInstall}
|
disableInstall={disableInstall}
|
||||||
teamsPlanRequired={teamsPlanRequired}
|
teamsPlanRequired={teamsPlanRequired}
|
||||||
render={({ useDefaultComponent, ...props }) => {
|
render={({ useDefaultComponent, ...props }) => {
|
||||||
|
@ -362,7 +359,6 @@ export default function App(props: {
|
||||||
tos?: string;
|
tos?: string;
|
||||||
privacy?: string;
|
privacy?: string;
|
||||||
licenseRequired: AppType["licenseRequired"];
|
licenseRequired: AppType["licenseRequired"];
|
||||||
isProOnly: AppType["isProOnly"];
|
|
||||||
teamsPlanRequired: AppType["teamsPlanRequired"];
|
teamsPlanRequired: AppType["teamsPlanRequired"];
|
||||||
descriptionItems?: Array<string | { iframe: IframeHTMLAttributes<HTMLIFrameElement> }>;
|
descriptionItems?: Array<string | { iframe: IframeHTMLAttributes<HTMLIFrameElement> }>;
|
||||||
isTemplate?: boolean;
|
isTemplate?: boolean;
|
||||||
|
|
|
@ -73,7 +73,6 @@ function SingleAppPage(props: inferSSRProps<typeof getStaticProps>) {
|
||||||
email={data.email}
|
email={data.email}
|
||||||
licenseRequired={data.licenseRequired}
|
licenseRequired={data.licenseRequired}
|
||||||
teamsPlanRequired={data.teamsPlanRequired}
|
teamsPlanRequired={data.teamsPlanRequired}
|
||||||
isProOnly={data.isProOnly}
|
|
||||||
descriptionItems={source.data?.items as string[] | undefined}
|
descriptionItems={source.data?.items as string[] | undefined}
|
||||||
isTemplate={data.isTemplate}
|
isTemplate={data.isTemplate}
|
||||||
dependencies={data.dependencies}
|
dependencies={data.dependencies}
|
||||||
|
|
|
@ -46,7 +46,6 @@ export default function OmniInstallAppButton({
|
||||||
return (
|
return (
|
||||||
<InstallAppButton
|
<InstallAppButton
|
||||||
type={app.type}
|
type={app.type}
|
||||||
isProOnly={app.isProOnly}
|
|
||||||
teamsPlanRequired={app.teamsPlanRequired}
|
teamsPlanRequired={app.teamsPlanRequired}
|
||||||
wrapperClassName={classNames("[@media(max-width:260px)]:w-full", className)}
|
wrapperClassName={classNames("[@media(max-width:260px)]:w-full", className)}
|
||||||
render={({ useDefaultComponent, ...props }) => {
|
render={({ useDefaultComponent, ...props }) => {
|
||||||
|
|
|
@ -49,7 +49,6 @@ export const InstallAppButtonWithoutPlanCheck = (
|
||||||
|
|
||||||
export const InstallAppButton = (
|
export const InstallAppButton = (
|
||||||
props: {
|
props: {
|
||||||
isProOnly?: App["isProOnly"];
|
|
||||||
teamsPlanRequired?: App["teamsPlanRequired"];
|
teamsPlanRequired?: App["teamsPlanRequired"];
|
||||||
type: App["type"];
|
type: App["type"];
|
||||||
wrapperClassName?: string;
|
wrapperClassName?: string;
|
||||||
|
@ -86,7 +85,7 @@ export const InstallAppButton = (
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}, [isUserLoading, user, router, props.isProOnly, hasTeamPlan, props.teamsPlanRequired]);
|
}, [isUserLoading, user, router, hasTeamPlan, props.teamsPlanRequired]);
|
||||||
|
|
||||||
if (isUserLoading || isTeamPlanStatusLoading) {
|
if (isUserLoading || isTeamPlanStatusLoading) {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -129,7 +129,6 @@ export interface App {
|
||||||
teamsPlanRequired?: {
|
teamsPlanRequired?: {
|
||||||
upgradeUrl: string;
|
upgradeUrl: string;
|
||||||
};
|
};
|
||||||
isProOnly?: boolean;
|
|
||||||
appData?: AppData;
|
appData?: AppData;
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
|
|
|
@ -96,7 +96,6 @@ export function AppCard({ app, credentials, searchText }: AppCardProps) {
|
||||||
? !app.isGlobal && (
|
? !app.isGlobal && (
|
||||||
<InstallAppButton
|
<InstallAppButton
|
||||||
type={app.type}
|
type={app.type}
|
||||||
isProOnly={app.isProOnly}
|
|
||||||
teamsPlanRequired={app.teamsPlanRequired}
|
teamsPlanRequired={app.teamsPlanRequired}
|
||||||
disableInstall={!!app.dependencies && !app.dependencyData?.some((data) => !data.installed)}
|
disableInstall={!!app.dependencies && !app.dependencyData?.some((data) => !data.installed)}
|
||||||
wrapperClassName="[@media(max-width:260px)]:w-full"
|
wrapperClassName="[@media(max-width:260px)]:w-full"
|
||||||
|
@ -125,7 +124,6 @@ export function AppCard({ app, credentials, searchText }: AppCardProps) {
|
||||||
credentials.length === 0 && (
|
credentials.length === 0 && (
|
||||||
<InstallAppButton
|
<InstallAppButton
|
||||||
type={app.type}
|
type={app.type}
|
||||||
isProOnly={app.isProOnly}
|
|
||||||
wrapperClassName="[@media(max-width:260px)]:w-full"
|
wrapperClassName="[@media(max-width:260px)]:w-full"
|
||||||
disableInstall={!!app.dependencies && app.dependencyData?.some((data) => !data.installed)}
|
disableInstall={!!app.dependencies && app.dependencyData?.some((data) => !data.installed)}
|
||||||
teamsPlanRequired={app.teamsPlanRequired}
|
teamsPlanRequired={app.teamsPlanRequired}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user