From f306e381630f5e41eacf07f5501271502426cf17 Mon Sep 17 00:00:00 2001 From: Liam Arbuckle Date: Sat, 10 Jun 2023 03:39:33 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=81=F0=9F=92=81=E2=80=8D=E2=99=82?= =?UTF-8?q?=EF=B8=8F=20=E2=86=9D=20Branch=20now=20able=20to=20build=20with?= =?UTF-8?q?=20all=20web3=20components=20taken=20out?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Gameplay/Planets/PlanetCard.tsx | 24 +- .../Connections/AuthenticateAccount.tsx | 3 +- components/Lens/FeedPost.tsx | 47 - components/Lens/LensUser.tsx | 104 - components/Lens/Utterances.jsx | 123 - graphql/auth-fetcher.ts | 54 - graphql/authenticate.graphql | 6 - graphql/challenge.graphql | 5 - graphql/comment.graphql | 33 - graphql/common.graphql | 559 -- graphql/explore-publications.graphql | 19 - graphql/follow.graphql | 26 - graphql/generated.ts | 5024 ----------------- graphql/get-default-profile.graphql | 5 - graphql/get-profile.graphql | 5 - graphql/get-publications.graphql | 19 - graphql/post.graphql | 30 - graphql/refresh.graphql | 6 - lib/auth/generateChallenge.ts | 10 - lib/auth/helpers.ts | 68 - lib/auth/refreshAccessToken.ts | 55 - lib/auth/useLensUser.ts | 28 - lib/auth/useLogin.ts | 32 - lib/helpers.ts | 8 +- pages/api/link.ts | 8 +- pages/planets/planet.tsx | 8 - pages/posts/lens/[id].tsx | 106 - pages/posts/lens/create.tsx | 14 - pages/posts/lens/feed.tsx | 50 - 29 files changed, 16 insertions(+), 6463 deletions(-) delete mode 100644 components/Lens/FeedPost.tsx delete mode 100644 components/Lens/LensUser.tsx delete mode 100644 components/Lens/Utterances.jsx delete mode 100644 graphql/auth-fetcher.ts delete mode 100644 graphql/authenticate.graphql delete mode 100644 graphql/challenge.graphql delete mode 100644 graphql/comment.graphql delete mode 100644 graphql/common.graphql delete mode 100644 graphql/explore-publications.graphql delete mode 100644 graphql/follow.graphql delete mode 100644 graphql/generated.ts delete mode 100644 graphql/get-default-profile.graphql delete mode 100644 graphql/get-profile.graphql delete mode 100644 graphql/get-publications.graphql delete mode 100644 graphql/post.graphql delete mode 100644 graphql/refresh.graphql delete mode 100644 lib/auth/generateChallenge.ts delete mode 100644 lib/auth/helpers.ts delete mode 100644 lib/auth/refreshAccessToken.ts delete mode 100644 lib/auth/useLensUser.ts delete mode 100644 lib/auth/useLogin.ts delete mode 100644 pages/posts/lens/[id].tsx delete mode 100644 pages/posts/lens/create.tsx delete mode 100644 pages/posts/lens/feed.tsx diff --git a/components/Gameplay/Planets/PlanetCard.tsx b/components/Gameplay/Planets/PlanetCard.tsx index fd4abf53..c22f95a8 100644 --- a/components/Gameplay/Planets/PlanetCard.tsx +++ b/components/Gameplay/Planets/PlanetCard.tsx @@ -5,8 +5,6 @@ import Link from "next/link"; import { useSession, useSupabaseClient } from "@supabase/auth-helpers-react"; import PlanetEditor, { PlanetEditorFromData } from "../../../pages/generator/planet-editor"; // import StakePlay from "../../../pages/stake/play"; -import UtterancesComments from "../../Lens/Utterances"; -import { useContract, useContractRead, useContractWrite, useLazyMint } from "@thirdweb-dev/react"; import { planetsImagesCdnAddress } from "../../../constants/cdn"; import { v4 as uuidv4 } from 'uuid'; import { Col, Container, Row, Form } from "react-bootstrap"; @@ -30,22 +28,6 @@ export function PlanetCard ({ activeTab, planetId }) { } ); } - const { contract } = useContract(planet?.contract); - /*const { mutateAsync: lazyMint, isLoading } = useContractWrite(contract, "lazymint"); - const lazyMintAnomaly = async () => { - try { - const data = await lazyMint([ _amount, _baseURIForTokens, _data ]); - console.info('contract call success: ', data); - } catch (err) { - console.error('contract call failure: ', err); - } - }*/ - - const { - mutate: lazyMint, - isLoading, - error, - } = useLazyMint(contract); // function showNftMetadataUri (planet) { // const { contract } = useContract(`{planet?.contract}`); @@ -162,14 +144,14 @@ export function PlanetCard ({ activeTab, planetId }) {

{planet?.owner} Owner

{planet?.owner == session?.user?.id /*&& planet?.userId == username*/ && ( <> - + {/* */}