|
1 | 1 | import "../styles/globals.css"
|
2 | 2 | import "../styles/markdown.css"
|
3 |
| -import Link from "next/link" |
4 | 3 | import Head from "next/head"
|
5 | 4 | import { useState } from "react"
|
6 | 5 | import { ethers } from "ethers"
|
7 | 6 | import { Menu, Transition } from "@headlessui/react"
|
8 |
| -import { Fragment, useEffect, useRef } from "react" |
| 7 | +import { Fragment, useEffect } from "react" |
9 | 8 | import { ChevronDownIcon } from "@heroicons/react/solid"
|
10 |
| -import { useRouter } from "next/router" |
| 9 | +import {Navigation} from "../components/Navigation"; |
11 | 10 |
|
12 | 11 | // On production, you should use something like web3Modal
|
13 | 12 | // to support additional wallet providers, like WalletConnect
|
@@ -165,43 +164,7 @@ function Marketplace({ Component, pageProps }) {
|
165 | 164 |
|
166 | 165 | <nav className="border-b p-6">
|
167 | 166 | <p className="text-4xl font-bold">Creative Commons NFT Playground</p>
|
168 |
| - <div className="flex mt-4"> |
169 |
| - <Link href="/"> |
170 |
| - <a className="mr-4 text-pink-500 _nav" id="_home"> |
171 |
| - Home |
172 |
| - </a> |
173 |
| - </Link> |
174 |
| - <Link href="/create"> |
175 |
| - <a className="mr-4 text-pink-500 _nav" id="_create"> |
176 |
| - +Create |
177 |
| - </a> |
178 |
| - </Link> |
179 |
| - <Link href="/articles-my"> |
180 |
| - <a className="mr-4 text-pink-500 _nav" id="_articles_my"> |
181 |
| - My Articles |
182 |
| - </a> |
183 |
| - </Link> |
184 |
| - <Link href="/articles-all"> |
185 |
| - <a className="mr-4 text-pink-500 _nav" id="_articles_all"> |
186 |
| - All Articles |
187 |
| - </a> |
188 |
| - </Link> |
189 |
| - <Link href="/my-nfts"> |
190 |
| - <a className="mr-4 text-pink-500 _nav" id="_my_nfts"> |
191 |
| - My NFTs |
192 |
| - </a> |
193 |
| - </Link> |
194 |
| - <Link href="/my-collections"> |
195 |
| - <a className="mr-4 text-pink-500 _nav" id="_my_collections"> |
196 |
| - My Collections |
197 |
| - </a> |
198 |
| - </Link> |
199 |
| - <Link href="/nft-market"> |
200 |
| - <a className="mr-4 text-pink-500 _nav" id="_nft_market"> |
201 |
| - NFT Market |
202 |
| - </a> |
203 |
| - </Link> |
204 |
| - </div> |
| 167 | + <Navigation /> |
205 | 168 | <button
|
206 | 169 | style={{ display: Logined ? "none" : "block" }}
|
207 | 170 | onClick={ConnectWallet}
|
|
0 commit comments