Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alimaktabi committed Jan 15, 2024
2 parents 2fb1d95 + 7e40451 commit 9b0c007
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions app/gastap/components/Modals/ClaimModal/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
"use client";

import { useMemo } from "react";
import { Text } from "@/components/ui/text.style";
import Icon from "@/components/ui/Icon";
import { ClaimButton } from "@/components/ui/Button/button";
import { BrightIdModalState, Chain, ClaimReceiptState } from "@/types";
import { getChainClaimIcon } from "@/utils/chain";
import { formatWeiBalance } from "@/utils/numbers";
import {
BrightIdNotVerifiedBody,
WalletNotConnectedBody,
ClaimSuccessBody,
ClaimPendingBody,
Expand All @@ -18,13 +16,13 @@ import {
import { useGasTapContext } from "@/context/gasTapProvider";
import { useUserProfileContext } from "@/context/userProfile";
import { DropIconWrapper } from "../../../../../components/containers/modals/claimModal.style";
import WalletAddress from "./walletAddress";
import { useGlobalContext } from "@/context/globalProvider";
import { shortenAddress } from "@/utils";
import ClaimNotAvailable from "../ClaimNotRemaining";
import { useWalletAccount } from "@/utils/wallet";
import Modal from "@/components/ui/Modal/modal";
import Image from "next/image";
import { BrightConnectionModalBody } from "@/components/containers/modals/brightConnectionModal";

const ClaimModalBody = ({ chain }: { chain: Chain }) => {
const { address, isConnected } = useWalletAccount();
Expand Down Expand Up @@ -53,7 +51,7 @@ const ClaimModalBody = ({ chain }: { chain: Chain }) => {
/>
);

if (!userProfile.isMeetVerified) return <BrightIdNotVerifiedBody />;
if (!userProfile.isMeetVerified) return <BrightConnectionModalBody />;

if (!isConnected) return <WalletNotConnectedBody chainPk={chain.pk} />;

Expand Down
3 changes: 1 addition & 2 deletions components/containers/modals/brightConnectionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ import BrightStatusModal from "./brightStatusModal";
import Icon from "@/components/ui/Icon";
import { ConnectBrightIdApi, sponsorAPI } from "@/utils/api";
import { useUserProfileContext } from "@/context/userProfile";
import { ErrorsContext } from "@/context/errorsProvider";
import useGenerateKeys from "@/utils/hooks/generateKeys";
import { useGlobalContext } from "@/context/globalProvider";
import Modal from "@/components/ui/Modal/modal";
import { AxiosError } from "axios";

const BrightConnectionModalBody = () => {
export const BrightConnectionModalBody = () => {
const { userProfile, refreshUserProfile, updateProfile, userToken } =
useUserProfileContext();

Expand Down

1 comment on commit 9b0c007

@vercel
Copy link

@vercel vercel bot commented on 9b0c007 Jan 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.