@@ -5,6 +5,7 @@ import { AuthContext } from "./Context/Contexts/AuthContext";
55import Download from "./Components/Screens/Download" ;
66import Authenticate from "./Components/Screens/Authentication" ;
77import { Loading } from "./Components/Loading" ;
8+ import Maintenance from "./Components/Screens/Maintenance" ;
89
910const HomePage = lazy ( ( ) => import ( "./Components/Screens/Homepage" ) ) ;
1011const Dashboard = lazy ( ( ) => import ( "./Components/Screens/Dashboard" ) ) ;
@@ -30,6 +31,7 @@ const Routing = () => {
3031 history . push ( "/dashboard" ) ;
3132 }
3233 }
34+ history . push ( "/maintenance" ) ;
3335 return (
3436 < ErrorBoundary >
3537 < Suspense fallback = { < Loading /> } >
@@ -41,6 +43,7 @@ const Routing = () => {
4143 < Route exact path = "/profile" component = { Profile } />
4244 < Route exact path = "/about" component = { About } />
4345 < Route exact path = "/:urlId" component = { Download } />
46+ < Route exact path = "/maintenance" component = { Maintenance } />
4447 < Route >
4548 < Redirect to = "/dashboard" /> < HomePage />
4649 </ Route >
@@ -49,7 +52,8 @@ const Routing = () => {
4952 < Switch >
5053 < Route exact path = "/about" component = { About } />
5154 < Route exact path = "/authenticate" component = { Authenticate } />
52- < Route exact path = "/:urlId" component = { Download } />
55+ < Route exact path = "/maintenance" component = { Maintenance } />
56+ < Route exact path = "/:urlId" component = { Download } />
5357 < Route exact path = "/" component = { HomePage } />
5458 </ Switch >
5559 ) }
0 commit comments