diff --git a/packages/shared/src/components/cores/common.tsx b/packages/shared/src/components/cores/common.tsx index b9b57ed989..ecab9f31a5 100644 --- a/packages/shared/src/components/cores/common.tsx +++ b/packages/shared/src/components/cores/common.tsx @@ -31,11 +31,6 @@ export const coresFAQItems: FAQItem[] = [ description: 'Cores are non-refundable once purchased. Please double-check your selected bundle before completing the transaction. If you run into any issues, you can always reach out to support@daily.dev and we’ll do our best to help.', }, - { - title: 'Can I convert Cores into real money?', - description: - 'We’re currently experimenting with monetization. In some cases, eligible users may request withdrawals once they meet minimum thresholds. This feature may require identity verification, isn’t available in all countries, and is subject to platform policies and changes.', - }, { title: 'Are Cores included in the daily.dev Plus subscription?', description: diff --git a/packages/shared/src/lib/constants.ts b/packages/shared/src/lib/constants.ts index 369e764b57..2faa88619d 100644 --- a/packages/shared/src/lib/constants.ts +++ b/packages/shared/src/lib/constants.ts @@ -167,8 +167,6 @@ export const DeletedPostId = '404'; export const BROADCAST_CHANNEL_NAME = 'dailydev_broadcast'; export const broadcastChannel = new BroadcastChannel(BROADCAST_CHANNEL_NAME); -export const withdrawLink = 'https://r.daily.dev/withdraw'; - export const coresDocsLink = 'https://r.daily.dev/cores'; export const webFunnelPrefix = '/helloworld'; diff --git a/packages/shared/src/lib/transaction.tsx b/packages/shared/src/lib/transaction.tsx index 4ebc212dd6..f24b0b257e 100644 --- a/packages/shared/src/lib/transaction.tsx +++ b/packages/shared/src/lib/transaction.tsx @@ -87,6 +87,4 @@ export const getTransactionLabel = ({ return type.toUpperCase(); }; -export const minCoresEarningsThreshold = 100_000; - export const coreApproxValueUSD = 100; diff --git a/packages/webapp/pages/wallet.tsx b/packages/webapp/pages/wallet.tsx index ce74df6d03..c99b83ef17 100644 --- a/packages/webapp/pages/wallet.tsx +++ b/packages/webapp/pages/wallet.tsx @@ -10,7 +10,6 @@ import { } from '@dailydotdev/shared/src/components/buttons/Button'; import { Typography, - TypographyColor, TypographyType, } from '@dailydotdev/shared/src/components/typography/Typography'; import { @@ -18,7 +17,6 @@ import { creatorsTermsOfService, onboardingUrl, webappUrl, - withdrawLink, } from '@dailydotdev/shared/src/lib/constants'; import { CoreIcon, @@ -34,22 +32,15 @@ import { WidgetContainer } from '@dailydotdev/shared/src/components/widgets/comm import { IconSize } from '@dailydotdev/shared/src/components/Icon'; import classNames from 'classnames'; import classed from '@dailydotdev/shared/src/lib/classed'; -import { ProgressBar } from '@dailydotdev/shared/src/components/fields/ProgressBar'; import { LogEvent, Origin } from '@dailydotdev/shared/src/lib/log'; import { useLogContext } from '@dailydotdev/shared/src/contexts/LogContext'; import { useAuthContext } from '@dailydotdev/shared/src/contexts/AuthContext'; -import { - formatCoresCurrency, - formatCurrency, -} from '@dailydotdev/shared/src/lib/utils'; +import { formatCoresCurrency } from '@dailydotdev/shared/src/lib/utils'; import { getTransactionType, getTransactionLabel, - coreApproxValueUSD, - minCoresEarningsThreshold, } from '@dailydotdev/shared/src/lib/transaction'; -import { anchorDefaultRel } from '@dailydotdev/shared/src/lib/strings'; import { useInfiniteQuery, useQuery } from '@tanstack/react-query'; import { generateQueryKey, @@ -192,10 +183,6 @@ const Wallet = (): ReactElement => { return null; } - const earningsProgressPercentage = - user.balance.amount / (minCoresEarningsThreshold / 100); - const coresValueUSD = minCoresEarningsThreshold / coreApproxValueUSD; - return (
@@ -261,73 +248,6 @@ const Wallet = (): ReactElement => { /> -
-
- - Earn with daily.dev (beta) - - - Earn income by engaging with the daily.dev community, - contributing valuable content, and receiving Cores from - others. Once you reach{' '} - {formatCurrency(minCoresEarningsThreshold, { - minimumFractionDigits: 0, - })}{' '} - Cores, you can request a withdrawal. Monetization is still in - beta, so additional eligibility steps and requirements may - apply. - -
-
- -
- - - {formatCurrency(user.balance.amount, { - minimumFractionDigits: 0, - })}{' '} - /{' '} - - {formatCurrency(minCoresEarningsThreshold, { - minimumFractionDigits: 0, - })} - {' '} - Cores (≈ USD $ - {formatCurrency(coresValueUSD, { - minimumFractionDigits: 0, - })} - ) - -
-
- -
-
Transaction history