diff --git a/pages/index.js b/pages/index.js
index 8826ce6..d3d8fce 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -5,7 +5,7 @@ import { COMMANDS } from "../cmds"
import useCurrentUser from "../hooks/use-current-user"
import useConfig from "../hooks/use-config"
import { init } from "@onflow/fcl-wc"
-import Loading from "./loading";
+import Loading from "./loading"
import Image from "next/image"
import "../flow/config"
@@ -21,27 +21,26 @@ export default function Home() {
const currentUser = useCurrentUser()
const config = useConfig()
const [services, setServices] = useState([])
- const [isLoading, setIsLoading] = useState(false);
+ const [isLoading, setIsLoading] = useState(false)
const discoveryWalletInputRef = useRef(null)
- const [status, setStatus] = useState(null)
- const renderCommand = (d) => {
+ const renderCommand = d => {
return (
- );
- };
+ )
+ }
async function clickHandler(d) {
- setIsLoading(true);
- await d.CMD();
- setIsLoading(false);
+ setIsLoading(true)
+ await d.CMD()
+ setIsLoading(false)
}
useEffect(() => {
const initAdapter = async () => {
- const { FclWcServicePlugin, client } = await init({
+ const { FclWcServicePlugin } = await init({
projectId: WC_PROJECT_ID,
metadata: WC_METADATA,
includeBaseWC: true,
@@ -74,8 +73,7 @@ export default function Home() {
return (
-
{COMMANDS.map(cmd => renderCommand(cmd, setStatus))}
-
Status: {status ?? ""}
+
{COMMANDS.map(cmd => renderCommand(cmd))}
{services?.map(service => (
@@ -93,12 +91,12 @@ export default function Home() {
{JSON.stringify({ currentUser, config }, null, 2)}
- {isLoading ?
: null}
+ {isLoading ?
: null}
)
}