import { Route, Switch } from 'react-router-dom';
import RootPage from './components/root';
import HomePage from './components/home';
import LoginPage from './components/login';
import DefaultPage from './components/default';
import RegisterPage from './components/register';
import TermsAndConditionsPage from './components/termsAndConditions';
import FinancialPage from './components/financial';

function App() {
  return (
    <Switch>
      <Route exact path='/' component={RootPage} />
      <Route exact path='/home' component={HomePage} />
      <Route exact path='/financial' component={FinancialPage} />
      <Route exact path='/login' component={LoginPage} />
      <Route exact path='/register' component={RegisterPage} />
      <Route exact path='/terms-and-conditions' component={TermsAndConditionsPage} />
      <Route path='*' component={DefaultPage} />
    </Switch>
  );
}

export default App;
