App.js 946 Bytes
Newer Older
우지원's avatar
0628    
우지원 committed
1
import 'bootstrap/dist/css/bootstrap.min.css';
Kim, Chaerin's avatar
Kim, Chaerin committed
2
3
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import "./App.css";
우지원's avatar
0628    
우지원 committed
4
5
import HomeProfile from './components/Home/HomeProfile';
import RoomList from './components/Home/RoomList';
Kim, Chaerin's avatar
Kim, Chaerin committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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} />
우지원's avatar
0628    
우지원 committed
20
        <Route path="/Room" component={RoomList} />
Kim, Chaerin's avatar
Kim, Chaerin committed
21
22
23
24
25
26
27
      </Switch>
      {/* </AuthProvider> */}
    </Router>
  );
}

export default App;