diff --git a/app/src/context/wallet-selector/WalletSelectorContext.ts b/app/src/context/wallet-selector/WalletSelectorContext.ts deleted file mode 100644 index 09c43777..00000000 --- a/app/src/context/wallet-selector/WalletSelectorContext.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { createContext } from "react"; - -import { WalletSelectorContextType } from "./WalletSelectorContext.types"; - -export const WalletSelectorContext = createContext(undefined); diff --git a/app/src/context/wallet-selector/WalletSelectorContext.types.ts b/app/src/context/wallet-selector/WalletSelectorContext.types.ts deleted file mode 100644 index af3db8ee..00000000 --- a/app/src/context/wallet-selector/WalletSelectorContext.types.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { Near, WalletConnection as NEARWalletConnection } from "near-api-js"; -import { ReactNode } from "react"; - -import { NEARSignInOptions } from "context/near/wallet-selector/NearWalletSelectorContext.types"; - -export type WalletSelectorContextControllerProps = { - children: ReactNode; -} & WalletSelectorContextType; - -export enum WalletSelectorChain { - near = "near", -} - -export type WalletSelectorContextType = { - address?: string | null; - network?: string; - explorer?: string; - balance: string; - chain?: WalletSelectorChain; - isConnected: boolean; - onSetChain: (chain: WalletSelectorChain) => void; - onClickConnect: (args?: NEARSignInOptions) => void; - onClickDisconnect: () => void; - onSignedIn: () => void; - context: { - connection: NEARWalletConnection | undefined; - provider: Near | undefined; - guest: { address: string }; - }; -}; diff --git a/app/src/context/wallet-selector/WalletSelectorContextController.tsx b/app/src/context/wallet-selector/WalletSelectorContextController.tsx deleted file mode 100644 index 41b1c4ab..00000000 --- a/app/src/context/wallet-selector/WalletSelectorContextController.tsx +++ /dev/null @@ -1,8 +0,0 @@ -import React from "react"; - -import { WalletSelectorContext } from "./WalletSelectorContext"; -import { WalletSelectorContextControllerProps } from "./WalletSelectorContext.types"; - -export const WalletSelectorContextController = ({ children, ...props }: WalletSelectorContextControllerProps) => ( - {children} -); diff --git a/app/src/ui/pulse/prompt-input-card/PromptInputCard.tsx b/app/src/ui/pulse/prompt-input-card/PromptInputCard.tsx index 421149e3..01c82a93 100644 --- a/app/src/ui/pulse/prompt-input-card/PromptInputCard.tsx +++ b/app/src/ui/pulse/prompt-input-card/PromptInputCard.tsx @@ -3,7 +3,6 @@ import { Field, Form as RFForm } from "react-final-form"; import { useState } from "react"; import { useTranslation } from "next-i18next"; import { useAccount } from "wagmi"; -import { useNearWalletSelectorContext } from "context/near/wallet-selector/useNearWalletSelectorContext"; import { Card } from "ui/card/Card"; import { Typography } from "ui/typography/Typography"; @@ -17,6 +16,8 @@ import { useNearPromptWarsMarketContractContext } from "context/near/prompt-wars import { PromptInputCardProps } from "./PromptInputCard.types"; import styles from "./PromptInputCard.module.scss"; +const handleOnDisplayWidgetClick = () => undefined; + export const PromptInputCard: React.FC = ({ onSubmit, className, @@ -26,18 +27,12 @@ export const PromptInputCard: React.FC = ({ const [isNegativePromptFieldVisible, displayNegativePromptField] = useState(false); const { isConnected } = useAccount(); - const nearWalletSelectorContext = useNearWalletSelectorContext(); - const { actions } = useNearPromptWarsMarketContractContext(); const { status, fees, collateralToken } = marketContractValues; const isDisabled = status !== PromptWarsMarketContractStatus.OPEN; - const handleOnDisplayWidgetClick = () => { - nearWalletSelectorContext.modal?.show(); - }; - const { t } = useTranslation(["prompt-wars"]); return ( diff --git a/app/src/ui/wallet-selector/WalletSelector.module.scss b/app/src/ui/wallet-selector/WalletSelector.module.scss index 660c35e0..f055fb5e 100644 --- a/app/src/ui/wallet-selector/WalletSelector.module.scss +++ b/app/src/ui/wallet-selector/WalletSelector.module.scss @@ -135,8 +135,7 @@ } &__mobile { - margin-right: -$space-default; - margin-left: -$space-default; + display: block; &--button { width: 100%; diff --git a/app/src/ui/wallet-selector/WalletSelector.tsx b/app/src/ui/wallet-selector/WalletSelector.tsx index d00e89e6..b61097a1 100644 --- a/app/src/ui/wallet-selector/WalletSelector.tsx +++ b/app/src/ui/wallet-selector/WalletSelector.tsx @@ -29,13 +29,11 @@ export const WalletSelector: React.FC = ({ className }) => return (