Page MenuHomec4science

App.js
No OneTemporary

File Metadata

Created
Fri, Nov 1, 17:52
import React from "react";
import "./App.css"
import { Container, Row, Col } from 'react-bootstrap';
import SearchFilterFields from './pages/SearchFilterFields'
import Footer from './components/layout/Footer'
import About from "./pages/About"
import {Switch, Route,} from "react-router-dom"
import Nav from "./components/layout/Nav"
function App () {
return(
<Container fluid>
<Row>
<Col> <Nav /> </Col>
</Row>
<Switch>
<Route exact path="/about" component={About} />
<Route exact path='/api' component={() => {
window.location.href = 'https://oacct-dev.epfl.ch/api/';
return null;
}}/>
<Route exact path='/login' component={() => {
window.location.href = 'https://oacct-dev.epfl.ch/admin/';
return null;
}}/>
<Route exact path="/">
<SearchFilterFields />
</Route>
</Switch>
<Footer />
</Container>
)
}
export default App

Event Timeline