Skip to content

Commit 823c948

Browse files
committed
feat: removed unused export.
1 parent a940346 commit 823c948

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

apps/dashboard/src/app/nebula-app/(app)/_farcaster/miniapp-provider.tsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ import type { AddMiniAppResult } from "@farcaster/frame-core/dist/actions/AddMin
44
import type { FrameContext } from "@farcaster/frame-core/dist/context";
55
import { sdk } from "@farcaster/frame-sdk";
66
import { useQuery } from "@tanstack/react-query";
7-
import {
8-
type ReactNode,
9-
createContext,
10-
useCallback,
11-
useContext,
12-
useState,
13-
} from "react";
7+
import { type ReactNode, createContext, useCallback, useState } from "react";
148
import { base } from "thirdweb/chains";
159
import { useConnect } from "thirdweb/react";
1610
import { EIP1193 } from "thirdweb/wallets";
@@ -129,11 +123,3 @@ export function MiniAppProvider({
129123
</MiniAppContext.Provider>
130124
);
131125
}
132-
133-
export function useMiniApp() {
134-
const context = useContext(MiniAppContext);
135-
if (context === undefined) {
136-
throw new Error("useMiniApp must be used within a MiniAppProvider");
137-
}
138-
return context;
139-
}

0 commit comments

Comments
 (0)