|
1 | 1 | import "../styles/globals.css"
|
2 | 2 | import "../styles/markdown.css"
|
3 | 3 | import { FrontendVersion } from "../version.js"
|
4 |
| -import Link from "next/link" |
5 | 4 | import Head from "next/head"
|
6 | 5 | import { useState } from "react"
|
7 | 6 | import { ethers } from "ethers"
|
8 | 7 | import { Menu, Transition } from "@headlessui/react"
|
9 |
| -import { Fragment, useEffect, useRef } from "react" |
| 8 | +import { Fragment, useEffect } from "react" |
10 | 9 | import { ChevronDownIcon } from "@heroicons/react/solid"
|
11 |
| -import { useRouter } from "next/router" |
| 10 | +import {Navigation} from "../components/Navigation"; |
12 | 11 | import axios from "axios"
|
13 | 12 |
|
14 | 13 | // On production, you should use something like web3Modal
|
@@ -181,43 +180,7 @@ function Marketplace({ Component, pageProps }) {
|
181 | 180 |
|
182 | 181 | <nav className="border-b p-6">
|
183 | 182 | <p className="text-4xl font-bold">Creative Commons NFT Playground</p>
|
184 |
| - <div className="flex mt-4"> |
185 |
| - <Link href="/"> |
186 |
| - <a className="mr-4 text-pink-500 _nav" id="_home"> |
187 |
| - Home |
188 |
| - </a> |
189 |
| - </Link> |
190 |
| - <Link href="/create"> |
191 |
| - <a className="mr-4 text-pink-500 _nav" id="_create"> |
192 |
| - +Create |
193 |
| - </a> |
194 |
| - </Link> |
195 |
| - <Link href="/articles-my"> |
196 |
| - <a className="mr-4 text-pink-500 _nav" id="_articles_my"> |
197 |
| - My Articles |
198 |
| - </a> |
199 |
| - </Link> |
200 |
| - <Link href="/articles-all"> |
201 |
| - <a className="mr-4 text-pink-500 _nav" id="_articles_all"> |
202 |
| - All Articles |
203 |
| - </a> |
204 |
| - </Link> |
205 |
| - <Link href="/my-nfts"> |
206 |
| - <a className="mr-4 text-pink-500 _nav" id="_my_nfts"> |
207 |
| - My NFTs |
208 |
| - </a> |
209 |
| - </Link> |
210 |
| - <Link href="/my-collections"> |
211 |
| - <a className="mr-4 text-pink-500 _nav" id="_my_collections"> |
212 |
| - My Collections |
213 |
| - </a> |
214 |
| - </Link> |
215 |
| - <Link href="/nft-market"> |
216 |
| - <a className="mr-4 text-pink-500 _nav" id="_nft_market"> |
217 |
| - NFT Market |
218 |
| - </a> |
219 |
| - </Link> |
220 |
| - </div> |
| 183 | + <Navigation /> |
221 | 184 | <button
|
222 | 185 | style={{ display: Logined ? "none" : "block" }}
|
223 | 186 | onClick={ConnectWallet}
|
|
0 commit comments