App.js 739 Bytes
Newer Older
Kim, Chaerin's avatar
Kim, Chaerin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import "./App.css";
import HomeGuestPage from "./pages/HomeGuestPage";
import HomeUserPage from "./pages/HomeUserPage";
import ProfilePage from "./pages/ProfilePage";
import RoomPage from "./pages/RoomPage";

function App() {
  return (
    <Router basename={process.env.PUBLIC_URL}>
      {/* <AuthProvider> */}
      <Switch>
        <Route exact path="/" component={HomeGuestPage} />
        <Route exact path="/user" component={HomeUserPage} />
        <Route path="/profile/:id" component={ProfilePage} />
        <Route path="/Room/:id/:channel" component={RoomPage} />
      </Switch>
      {/* </AuthProvider> */}
    </Router>
  );
}

export default App;