Skip to content

Commit

Permalink
chore: export some missing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
moldy530 committed Jul 17, 2024
1 parent 996c3a3 commit da7a4fc
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 3 deletions.
2 changes: 1 addition & 1 deletion account-kit/react/src/hooks/useLogout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import { useMutation, type UseMutateFunction } from "@tanstack/react-query";
import { useDisconnect } from "wagmi";
import { useAuthContext } from "../components/auth/context.js";
import { useAlchemyAccountContext } from "../context.js";
import type { BaseHookMutationArgs } from "../types.js";
import { useSigner } from "./useSigner.js";
import { useAuthContext } from "../components/auth/context.js";

export type UseLogoutMutationArgs = BaseHookMutationArgs<void, void>;

Expand Down
8 changes: 6 additions & 2 deletions account-kit/react/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
export { cookieStorage, type CreateConfigProps } from "@account-kit/core";
export { createConfig } from "./createConfig.js";
export type * from "./context.js";
export {
AlchemyAccountContext,
AlchemyAccountProvider,
useAlchemyAccountContext,
} from "./context.js";
export { createConfig } from "./createConfig.js";
export { NoAlchemyAccountContextError } from "./errors.js";
export { type AlchemyAccountsUIConfig } from "./types.js";
export type * from "./hooks/useAccount.js";
export { useAccount } from "./hooks/useAccount.js";
export type * from "./hooks/useAddPasskey.js";
Expand All @@ -22,6 +21,10 @@ export type * from "./hooks/useChain.js";
export { useChain } from "./hooks/useChain.js";
export type * from "./hooks/useClientActions.js";
export { useClientActions } from "./hooks/useClientActions.js";
export type * from "./hooks/useConnect.js";
export { useConnect } from "./hooks/useConnect.js";
export type * from "./hooks/useConnection.js";
export { useConnection } from "./hooks/useConnection.js";
export type * from "./hooks/useDropAndReplaceUserOperation.js";
export { useDropAndReplaceUserOperation } from "./hooks/useDropAndReplaceUserOperation.js";
export type * from "./hooks/useExportAccount.js";
Expand All @@ -48,6 +51,7 @@ export type * from "./hooks/useUser.js";
export { useUser } from "./hooks/useUser.js";
export type * from "./hooks/useWaitForUserOperationTransaction.js";
export { useWaitForUserOperationTransaction } from "./hooks/useWaitForUserOperationTransaction.js";
export { type AlchemyAccountsUIConfig } from "./types.js";

// These are the actual components that should be exported later
export { AuthCard } from "./components/auth/card/index.js";
Expand Down
29 changes: 29 additions & 0 deletions site/pages/reference/account-kit/react/hooks/useConnect.mdx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions site/pages/reference/account-kit/react/hooks/useConnection.mdx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit da7a4fc

Please sign in to comment.