Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
daria-github committed Sep 29, 2023
1 parent 50950b4 commit 04c639b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 0 additions & 2 deletions src/hooks/useSendMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ import {
AttachmentCodec,
} from "@xmtp/content-type-remote-attachment";
import { Web3Storage } from "web3.storage";
import { useTranslation } from "react-i18next";
import Upload from "../helpers/classes/Upload";
import { useXmtpStore } from "../store/xmtp";

const useSendMessage = (attachment?: Attachment) => {
const { t } = useTranslation();
const { sendMessage: _sendMessage, isLoading, error } = _useSendMessage();
const recipientOnNetwork = useXmtpStore((s) => s.recipientOnNetwork);

Expand Down
7 changes: 0 additions & 7 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ import { publicProvider } from "wagmi/providers/public";
import { attachmentContentTypeConfig, XMTPProvider } from "@xmtp/react-sdk";
import { mainnet } from "wagmi/chains";
import { infuraProvider } from "wagmi/providers/infura";
import {
coinbaseWallet,
metaMaskWallet,
rainbowWallet,
trustWallet,
walletConnectWallet,
} from "@rainbow-me/rainbowkit/wallets";
import App from "./controllers/AppController";
import { isAppEnvDemo } from "./helpers";
import { mockConnector } from "./helpers/mockConnector";
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const OnboardingPage = () => {
const { openConnectModal } = useConnectModal();
const { client, isLoading, status, setStatus, resolveCreate, resolveEnable } =
useInitXmtpClient();
const { reset: resetWagmi } = useDisconnect();
const { reset: resetWagmi, disconnect: disconnectWagmi } = useDisconnect();
const { disconnect: disconnectClient } = useClient();

useEffect(() => {
Expand Down

0 comments on commit 04c639b

Please sign in to comment.