github.com/christoph-karpowicz/db_mediator@v0.0.0-20210207102849-61a28a1071d8/web/src/componenets/content/Content.tsx (about)

     1  import React from 'react';
     2  import '../../css/Content.css';
     3  import { Switch, Route } from "react-router-dom";
     4  import DashboardSection from './sections/dashboard/DashboardSection';
     5  import SynchsSection from './sections/synchs/SynchsSection';
     6  
     7  function Content() {
     8    return (
     9      <div className="content">
    10          <Switch>
    11            <Route path="/synchs/:name">
    12                <SynchsSection />
    13            </Route>
    14            <Route path="/">
    15                <DashboardSection />
    16            </Route>
    17          </Switch>
    18      </div>
    19    );
    20  }
    21  
    22  export default Content;