mirror of
https://dev.azure.com/tstanciu94/NetworkResurrector/_git/NetworkResurrector_Frontend
synced 2023-05-06 14:40:17 +03:00
20 lines
699 B
JavaScript
20 lines
699 B
JavaScript
import React from "react";
|
|
import { Route, Switch } from "react-router-dom";
|
|
import PageNotFound from "./PageNotFound";
|
|
import LoginContainer from "../../features/login/components/LoginContainer";
|
|
import NetworkContainer from "../../features/network/components/NetworkContainer";
|
|
import SettingsContainer from "../../features/settings/components/SettingsContainer";
|
|
|
|
const Switcher = () => {
|
|
return (
|
|
<Switch>
|
|
<Route exact path="/" component={LoginContainer} />
|
|
<Route exact path="/network" component={NetworkContainer} />
|
|
<Route exact path="/settings" component={SettingsContainer} />
|
|
<Route component={PageNotFound} />
|
|
</Switch>
|
|
);
|
|
};
|
|
|
|
export default Switcher;
|