RouterConfig.tsx 689 Bytes
Newer Older
Aivs's avatar
Aivs committed
1 2 3 4 5 6
import React, {FC} from "react";
import {Route, Switch} from "react-router-dom";
import Home from "../pages/Home";
import Actions from "../pages/Actions";
import ExternalUser from "../pages/ExternalUser";
import ExternalChat from "../pages/ExternalChat";
Aivs's avatar
Aivs committed
7
import FindCustom from "../pages/findCustom";
Aivs's avatar
Aivs committed
8 9 10 11 12 13 14

const RouterConfig: FC = () => {
  return (
    <Switch>
      <Route exact path="/">
        <Home/>
      </Route>
Aivs's avatar
Aivs committed
15 16
      <Route path="/findCustom">
        <FindCustom/>
Aivs's avatar
Aivs committed
17 18 19 20 21 22 23 24 25 26 27 28
      </Route>
      <Route path="/external-user">
        <ExternalUser/>
      </Route>
      <Route path="/external-chat">
        <ExternalChat/>
      </Route>
    </Switch>
  )
}

export default RouterConfig;