Fixed Join Screen and added Station Page navigation
This commit is contained in:
parent
4ea9fea362
commit
db8ab4e166
5 changed files with 46 additions and 85 deletions
|
@ -1,10 +1,10 @@
|
|||
import React from 'react';
|
||||
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
|
||||
import Home from './screens/Home';
|
||||
import CreateStation from './screens/CreateStation';
|
||||
import JoinStation from './screens/JoinStation';
|
||||
import StationPage from './screens/StationPage';
|
||||
import './App.css';
|
||||
import React from "react";
|
||||
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
||||
import Home from "./screens/Home";
|
||||
import CreateStation from "./screens/CreateStation";
|
||||
import JoinStation from "./screens/JoinStation";
|
||||
import StationPage from "./screens/StationPage";
|
||||
import "./App.css";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
|
@ -14,7 +14,7 @@ function App() {
|
|||
<Route path="/" element={<Home />} />
|
||||
<Route path="/create-station" element={<CreateStation />} />
|
||||
<Route path="/join-station" element={<JoinStation />} />
|
||||
<Route path="/station" element={<StationPage />} />
|
||||
<Route path="/station/:id" element={<StationPage />} />
|
||||
</Routes>
|
||||
</Router>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue