+
Create new token
+
+ {showModal ? (
+ <>
+
+
+ {/*content*/}
+
+ {/*header*/}
+
+
API Token
+
-
-
-
+ {/*body*/}
+
-
-
+ {/*footer*/}
+
+
-
- {showModal ? (
- <>
-
-
- {/*content*/}
-
- {/*header*/}
-
-
API Token
-
-
- {/*body*/}
-
- {/*footer*/}
-
-
-
-
-
-
-
- >
- ) : null}
-
- );
+
+
+
+
+ >
+ ) : null}
+
+ );
};
export default TokenForm;
diff --git a/frontend/src/hooks/useAuth.ts b/frontend/src/hooks/useAuth.ts
index 5729128c..c6fbaf0d 100644
--- a/frontend/src/hooks/useAuth.ts
+++ b/frontend/src/hooks/useAuth.ts
@@ -1,3 +1,4 @@
+"use client"
import { jwtDecode } from 'jwt-decode'
import useWallet from './useWallet'
import { create } from 'zustand';
diff --git a/frontend/src/hooks/useWallet.ts b/frontend/src/hooks/useWallet.ts
index 6134fd18..ea849441 100644
--- a/frontend/src/hooks/useWallet.ts
+++ b/frontend/src/hooks/useWallet.ts
@@ -1,6 +1,6 @@
import { Eip1193Provider } from 'ethers';
import { JsonRpcSigner } from 'ethers';
-import { getDefaultProvider, BrowserProvider, getAddress } from 'ethers'
+import { BrowserProvider } from 'ethers'
import { create } from 'zustand'
declare global {
diff --git a/frontend/src/pages/_app.tsx b/frontend/src/pages/_app.tsx
deleted file mode 100644
index 46ccc5b1..00000000
--- a/frontend/src/pages/_app.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-import { AppProps } from "next/app";
-import Layout from "../components/layout";
-import "@/styles/globals.css";
-
-export default function SwitchboardFrontend({ Component, pageProps }: AppProps) {
- return (
-
-
-
- );
-}
diff --git a/frontend/src/pages/graphql/[driveId]/index.tsx b/frontend/src/pages/graphql/[driveId]/index.tsx
deleted file mode 100644
index 4d9a02ee..00000000
--- a/frontend/src/pages/graphql/[driveId]/index.tsx
+++ /dev/null
@@ -1,8 +0,0 @@
-import { useRouter } from "next/router";
-
-export default function DriveGraphQL() {
- const router = useRouter();
- const query = router.query.query;
-
- return
;
-}
diff --git a/frontend/src/pages/graphql/index.tsx b/frontend/src/pages/graphql/index.tsx
deleted file mode 100644
index 36bdbd47..00000000
--- a/frontend/src/pages/graphql/index.tsx
+++ /dev/null
@@ -1,8 +0,0 @@
-import { useRouter } from "next/router";
-
-export default function GraphQL() {
- const router = useRouter();
- const query = router.query.query;
-
- return
;
-}
diff --git a/frontend/src/pages/index.tsx b/frontend/src/pages/index.tsx
deleted file mode 100644
index 03aa360a..00000000
--- a/frontend/src/pages/index.tsx
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function User() {
- return
;
-}
diff --git a/frontend/src/pages/user/index.tsx b/frontend/src/pages/user/index.tsx
deleted file mode 100644
index 0cb35c91..00000000
--- a/frontend/src/pages/user/index.tsx
+++ /dev/null
@@ -1,64 +0,0 @@
-import TokenForm from "@/components/tokens/token-form";
-import TokensTable from "@/components/tokens/tokens-table";
-import useAuth, { authStore } from "@/hooks/useAuth";
-import { useEffect } from "react";
-import { ArrowRightStartOnRectangleIcon } from "@heroicons/react/24/solid";
-import { useRouter } from "next/router";
-
-const User = () => {
- const address = authStore((state) => state.address);
-
- const { signIn, signOut } = useAuth();
-
- const router = useRouter();
-
- if (!address) {
- return (
-
-
-
- );
- }
- return (
-
-
-
API Tokens
-
-
-
-
-
-
-
- );
-};
-
-export default User;
diff --git a/frontend/src/styles/globals.css b/frontend/src/styles/globals.css
deleted file mode 100644
index a90f0749..00000000
--- a/frontend/src/styles/globals.css
+++ /dev/null
@@ -1,4 +0,0 @@
-@tailwind base;
-@tailwind components;
-@tailwind utilities;
-