import './App.css';
import React, {Component} from "react";
import {Routes, BrowserRouter as Router, Route} from "react-router-dom";
import RebuMKService from "../../repository/rebuRepository";
import Home from "../Home/home";
import Login from '../Login/login';
import Header from "../Header/header";
import Register from "../Register/register";
import RegisterDriver from "../Register/registerDriver";
import RegisterPassenger from "../Register/registerPassenger";
import Requests from "../Requests/requests";
import ConfirmedRequest from '../Requests/confirmedRequest';
import StartedDrive from '../Drive/startedDrive';
import GradeDrive from '../Drive/gradeDrive'
import PayDrive from '../Drive/pay-drive'
import MakeRequest from '../Requests/makeRequest';
import MadeRequest from '../Requests/madeRequest';
import Drivers from '../Drivers/drivers'
import UnapprovedDrivers from '../Drivers/unapprovedDrivers';
import Car from '../Cars/car'
import AddCar from '../Cars/addCar'
import Payments from '../Payments/payments'
import AdminReport from '../Reports/adminReport'
import DriverReport from '../Reports/driverReport'
import PassengerReport from '../Reports/passengerReport'
import Footer from '../Footer/footer'
import DriverProfile from '../Drivers/driverProfile'
import TipDriver from '../Drive/tipDriver';
class App extends Component {
constructor(props) {
super(props);
this.state = {
allCreatedRequests: [],
allApprovedDrivers: [],
allUnApprovedDrivers: [],
payments: [],
adminReport: [],
passengerReport: [],
driverReport: [],
loggedDriver: null
}
}
render() {
return (