Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update App.jsx #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 39 additions & 44 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,53 +1,48 @@
import { BrowserRouter, Route, Routes } from 'react-router-dom'
import { useEffect, useState } from 'react'
import HomePage from './pages/HomePage'
import NFTMarketplace from './components/NFTMarketplace'
import ExplorePage from './pages/ExplorePage'
import AboutPage from './pages/AboutPage'
import CreatorsPage from './pages/CreatorsPage'
import FAQPage from './pages/FAQPage'
import Navbar from './components/Navbar'
import CreateNFT from './pages/CreateNFTPage'
import NotFoundPage from './components/NotFoundPage'
import { BrowserRouter, Route, Routes } from 'react-router-dom';
import { useEffect, useState } from 'react';
import HomePage from './pages/HomePage';
import NFTMarketplace from './components/NFTMarketplace';
import ExplorePage from './pages/ExplorePage';
import AboutPage from './pages/AboutPage';
import CreatorsPage from './pages/CreatorsPage';
import FAQPage from './pages/FAQPage';
import Navbar from './components/Navbar';
import CreateNFT from './pages/CreateNFTPage';
import NotFoundPage from './components/NotFoundPage';

function App() {
const [wallet, setWallet] = useState(null)
const [wallet, setWallet] = useState(null);

useEffect(() => {
console.log(wallet)
}, [wallet])
console.log(wallet);
}, [wallet]);

return (
<BrowserRouter>
<div className="min-h-screen">
<div className="">
<Navbar wallet={wallet} setWallet={setWallet} />
<Routes>
<Route
path="/"
element={
<HomePage
wallet={wallet}
setWallet={setWallet}
/>
}
/>
<Route
path="/marketplace"
element={<NFTMarketplace wallet={wallet} />}
/>
<Route
path="/create"
element={<CreateNFT wallet={wallet} />}
/>
<Route path="/explore" element={<ExplorePage />} />
<Route path="/about" element={<AboutPage />} />
<Route path="/creators" element={<CreatorsPage />} />
<Route path="/faqs" element={<FAQPage />} />
<Route path="/create" element={<CreateNFT />} />
<Route path="*" element={<NotFoundPage />} />
</Routes>
</div>
<Navbar wallet={wallet} setWallet={setWallet} />
<Routes>
<Route
path="/"
element={<HomePage wallet={wallet} setWallet={setWallet} />}
/>
<Route
path="/marketplace"
element={<NFTMarketplace wallet={wallet} />}
/>
<Route
path="/create"
element={<CreateNFT wallet={wallet} />}
/>
<Route path="/explore" element={<ExplorePage />} />
<Route path="/about" element={<AboutPage />} />
<Route path="/creators" element={<CreatorsPage />} />
<Route path="/faqs" element={<FAQPage />} />
<Route path="*" element={<NotFoundPage />} />
</Routes>
</div>
</BrowserRouter>
)
);
}

export default App
export default App;
Loading