Skip to content

Commit

Permalink
Migrate to Lens v3
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Jan 26, 2025
1 parent 5728c5f commit 5b34ec6
Show file tree
Hide file tree
Showing 5 changed files with 546 additions and 468 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[markdown]": {
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
Expand Down
6 changes: 1 addition & 5 deletions apps/web/src/components/Post/Actions/Share/Quote.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MenuItem } from "@headlessui/react";
import { ChatBubbleBottomCenterTextIcon } from "@heroicons/react/24/outline";
import { Errors } from "@hey/data/errors";
import { type Post, TriStateValue } from "@hey/indexer";
import { type Post } from "@hey/indexer";
import cn from "@hey/ui/cn";
import type { FC } from "react";
import toast from "react-hot-toast";
Expand All @@ -20,10 +20,6 @@ const Quote: FC<QuoteProps> = ({ post }) => {
const { setQuotedPost } = usePostStore();
const { isSuspended } = useAccountStatus();

if (post.operations?.canQuote === TriStateValue.No) {
return null;
}

return (
<MenuItem
as="div"
Expand Down
5 changes: 0 additions & 5 deletions apps/web/src/components/Post/Actions/Share/Repost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import sponsoredTransactionData from "@hey/helpers/sponsoredTransactionData";
import {
type LoggedInPostOperations,
type Post,
TriStateValue,
useRepostMutation
} from "@hey/indexer";
import { OptmisticTransactionType } from "@hey/types/enums";
Expand Down Expand Up @@ -124,10 +123,6 @@ const Repost: FC<RepostProps> = ({ isLoading, post, setIsLoading }) => {
onError
});

if (post.operations?.canRepost === TriStateValue.No) {
return null;
}

const handleCreateRepost = async () => {
if (!currentAccount) {
return toast.error(Errors.SignWallet);
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/Settings/Handles/LinkHandle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const LinkHandle: FC = () => {
};

const { data, loading } = useUsernamesQuery({
variables: { request: { owner: currentAccount?.owner } }
variables: { request: { filter: { owner: currentAccount?.owner } } }
});

const [assignUsernameToAccount] = useAssignUsernameToAccountMutation({
Expand Down
Loading

0 comments on commit 5b34ec6

Please sign in to comment.