Skip to content

Commit

Permalink
chore: Remove Pro-related components and references
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Mar 2, 2025
1 parent 69bdd35 commit 15a7a53
Show file tree
Hide file tree
Showing 14 changed files with 39 additions and 299 deletions.
2 changes: 0 additions & 2 deletions apps/web/src/components/Account/Details.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import FollowUnfollowButton from "@components/Shared/Account/FollowUnfollowButton";
import Pro from "@components/Shared/Account/Icons/Pro";
import Verified from "@components/Shared/Account/Icons/Verified";
import Markup from "@components/Shared/Markup";
import Slug from "@components/Shared/Slug";
Expand Down Expand Up @@ -75,7 +74,6 @@ const Details: FC<DetailsProps> = ({ isSuspended = false, account }) => {
<div className="flex items-center gap-1.5">
<H3 className="truncate">{getAccount(account).name}</H3>
<Verified address={account.address} showTooltip />
<Pro account={account} showTooltip />
{isSuspended ? (
<Tooltip content="Suspended">
<EyeSlashIcon className="size-6 text-brand-500" />
Expand Down
2 changes: 0 additions & 2 deletions apps/web/src/components/Notification/Account.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Pro from "@components/Shared/Account/Icons/Pro";
import Verified from "@components/Shared/Account/Icons/Verified";
import AccountPreview from "@components/Shared/AccountPreview";
import getAccount from "@hey/helpers/getAccount";
Expand Down Expand Up @@ -55,7 +54,6 @@ export const NotificationAccountName: FC<NotificationProfileProps> = ({
>
<span>{getAccount(account).name}</span>
<Verified address={account.address} iconClassName="size-4" />
<Pro account={account} iconClassName="size-4" />
</Link>
</AccountPreview>
);
Expand Down
148 changes: 0 additions & 148 deletions apps/web/src/components/Pro/index.tsx

This file was deleted.

35 changes: 0 additions & 35 deletions apps/web/src/components/Shared/Account/Icons/Pro.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions apps/web/src/components/Shared/AccountPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import plur from "plur";
import type { FC, ReactNode } from "react";
import { useState } from "react";
import FollowUnfollowButton from "./Account/FollowUnfollowButton";
import Pro from "./Account/Icons/Pro";
import Verified from "./Account/Icons/Verified";
import Markup from "./Markup";
import Slug from "./Slug";
Expand Down Expand Up @@ -101,7 +100,6 @@ const AccountPreview: FC<AccountPreviewProps> = ({
<div className="flex max-w-sm items-center gap-1 truncate">
<div className="text-md">{getAccount(account).name}</div>
<Verified address={account.address} iconClassName="size-4" />
<Pro account={account} iconClassName="size-4" />
</div>
<span>
<Slug
Expand Down
2 changes: 0 additions & 2 deletions apps/web/src/components/Shared/SingleAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import Link from "next/link";
import type { FC, ReactNode } from "react";
import { memo } from "react";
import FollowUnfollowButton from "./Account/FollowUnfollowButton";
import Pro from "./Account/Icons/Pro";
import Verified from "./Account/Icons/Verified";
import AccountPreview from "./AccountPreview";
import Markup from "./Markup";
Expand Down Expand Up @@ -58,7 +57,6 @@ const SingleAccount: FC<SingleAccountProps> = ({
</div>
</div>
<Verified address={account.address} iconClassName="ml-1 size-4" />
<Pro account={account} iconClassName="ml-1 size-4" />
</div>
<Slug className="text-sm" slug={getAccount(account).usernameWithPrefix} />
</>
Expand Down
2 changes: 0 additions & 2 deletions apps/web/src/components/Shared/SmallSingleAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import cn from "@hey/ui/cn";
import Link from "next/link";
import type { FC } from "react";
import { memo } from "react";
import Pro from "./Account/Icons/Pro";
import Verified from "./Account/Icons/Verified";
import Slug from "./Slug";

Expand Down Expand Up @@ -46,7 +45,6 @@ const SmallSingleAccount: FC<SmallSingleAccountProps> = ({
{getAccount(account).name}
</div>
<Verified address={account.address} iconClassName="mr-1 size-4" />
<Pro account={account} iconClassName="mr-1 size-4" />
{!hideSlug && (
<Slug
className="text-sm"
Expand Down
3 changes: 0 additions & 3 deletions apps/web/src/pages/pro.tsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/data/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export const IS_MAINNET = LENS_API_URL === LensEndpoint.Mainnet;
export const ADDRESS_PLACEHOLDER = "0x03Ba3...7EF";
export const NULL_ADDRESS = "0x0000000000000000000000000000000000000000";
export const COLLECT_FEES_WALLET = "0x03Ba34f6Ea1496fa316873CF8350A3f7eaD317EF";
export const PRO_NAMESPACE = "0x8cC5F0756Ab65f8c8706a181c12407950902767D";

// Application
export const APP_NAME = "Hey";
Expand Down
21 changes: 0 additions & 21 deletions packages/helpers/extractProTimestamp.ts

This file was deleted.

13 changes: 0 additions & 13 deletions packages/helpers/isPro.ts

This file was deleted.

24 changes: 0 additions & 24 deletions packages/helpers/prepareProUsername.ts

This file was deleted.

5 changes: 0 additions & 5 deletions packages/indexer/documents/fragments/account/Account.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,4 @@ fragment Account on Account {
username(request: { autoResolve: true }) {
...Username
}
pro: username(
request: { namespace: "0x8cC5F0756Ab65f8c8706a181c12407950902767D" }
) {
localName
}
}
Loading

0 comments on commit 15a7a53

Please sign in to comment.