-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
25 lines (23 loc) · 873 Bytes
/
App.js
File metadata and controls
25 lines (23 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import Home from './pages/Home';
import Navbar from './components/Navbar';
import AskQuestion from './pages/AskQuestion'; // ✅ check path: likely in /pages
import QuestionDetails from './pages/QuestionDetails'; // ✅ check path: likely in /pages
import { ToastProvider } from './components/Toast';
function App() {
return (
<ToastProvider>
<Router>
<Navbar />
<div className="min-h-screen bg-white text-black dark:bg-gray-950 dark:text-gray-100 transition-colors">
<Routes>
<Route path="/" element={<Home />} />
<Route path="/ask" element={<AskQuestion />} />
<Route path="/question/:id" element={<QuestionDetails />} />
</Routes>
</div>
</Router>
</ToastProvider>
);
}
export default App;