Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove pro mf #1398

Merged
merged 1 commit into from
Dec 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ updates:
schedule:
interval: "daily"

- package-ecosystem: "npm"
directory: "apps/pro"
target-branch: "main"
schedule:
interval: "daily"

# Packages
- package-ecosystem: "npm"
directory: "packages/abis"
Expand Down
1 change: 0 additions & 1 deletion apps/pro/.env.example

This file was deleted.

4 changes: 0 additions & 4 deletions apps/pro/.eslintrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions apps/pro/next-env.d.ts

This file was deleted.

21 changes: 0 additions & 21 deletions apps/pro/next.config.js

This file was deleted.

34 changes: 0 additions & 34 deletions apps/pro/package.json

This file was deleted.

17 changes: 0 additions & 17 deletions apps/pro/prisma/schema.prisma

This file was deleted.

25 changes: 0 additions & 25 deletions apps/pro/prisma/seed.ts

This file was deleted.

45 changes: 0 additions & 45 deletions apps/pro/src/abis/FeeCollector.ts

This file was deleted.

7 changes: 0 additions & 7 deletions apps/pro/src/pages/api/index.ts

This file was deleted.

34 changes: 0 additions & 34 deletions apps/pro/src/pages/api/user/[id].ts

This file was deleted.

33 changes: 0 additions & 33 deletions apps/pro/src/pages/api/webhook.ts

This file was deleted.

11 changes: 0 additions & 11 deletions apps/pro/tsconfig.json

This file was deleted.

7 changes: 2 additions & 5 deletions apps/web/src/components/Common/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import getIsAuthTokensAvailable from '@lib/getIsAuthTokensAvailable';
import getToastOptions from '@lib/getToastOptions';
import resetAuthData from '@lib/resetAuthData';
import axios from 'axios';
import { IS_MAINNET, PRO_STATUS_API_URL } from 'data/constants';
import { IS_MAINNET } from 'data/constants';
import type { Profile } from 'lens';
import { ReferenceModules, useUserProfilesQuery } from 'lens';
import Head from 'next/head';
Expand Down Expand Up @@ -102,9 +101,7 @@ const Layout: FC<Props> = ({ children }) => {
useEffect(() => {
if (currentProfile?.id && currentProfile?.id === '0x0d') {
if (IS_MAINNET) {
axios(`${PRO_STATUS_API_URL}/user/${currentProfile?.id}`)
.then(({ data }) => setIsPro(data.isPro))
.catch(() => setIsPro(false));
setIsPro(true);
} else {
setIsPro(true);
}
Expand Down
2 changes: 0 additions & 2 deletions packages/data/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ export const SERVERLESS_STAGING_SANDBOX_API_URL = 'https://api-staging-sandbox.l
export const SERVERLESS_SANDBOX_API_URL = 'https://api-sandbox.lenster.xyz';
export const SERVERLESS_DEVELOPMENT_API_URL = 'http://localhost:4784';

export const PRO_STATUS_API_URL = 'https://pro.lenster.xyz';

export const SERVERLESS_URL = getEnvConfig().serverlessEndpoint;
export const API_URL = getEnvConfig().apiEndpoint;
export const LENSHUB_PROXY = getEnvConfig().lensHubProxyAddress;
Expand Down