text: import React, { Component } from 'react';
  import { HashRouter, Redirect, Route, Switch } from 'react-router-dom';
  import '../scss/style.scss';
  
  const loading = (
    <div className="pt-3 text-center">
      <div className="sk-spinner sk-spinner-pulse"></div>
    </div>
  )
  
  // Containers
  
  // Pages
  const Login = React.lazy(() => import('../pages/login/Login'));
  const Register = React.lazy(() => import('../pages/register/Register'));
  
  
  class PublicRoutes extends Component {
  
    render() {
      return (
        <HashRouter>
            <React.Suspense fallback={loading}>
              <Switch>
              <Route exact path="/register" name="Register Page" render={props => <Register {...props}/>} />
              <Route path="/login" name="Login Page" render={props => <Login {...props}/>} />
              <Route exact path="/register" name="Register Page" render={props => <Register {...props}/>} />
              <Redirect to='/login' />
              </Switch>
            </React.Suspense>
        </HashRouter>
      );
    }
  }
  
  export default PublicRoutes;
  