Bladeren bron

done some fix

unknown 2 jaren geleden
bovenliggende
commit
114fbc0456

File diff suppressed because it is too large
+ 1 - 1
.eslintcache


+ 3 - 3
src/App.js

@@ -1,6 +1,6 @@
 import { lazy, Suspense } from 'react';
 import { useSelector } from 'react-redux';
-import { BrowserRouter, Switch, Route } from 'react-router-dom';
+import { BrowserRouter, Switch } from 'react-router-dom';
 import 'react-toastify/dist/ReactToastify.css';
 import { ToastContainer } from 'react-toastify';
 
@@ -101,7 +101,7 @@ function App() {
           <PrivateRoute path="/orders/:id">
             <DetailOrder />
           </PrivateRoute>
-          <Route path={'/authorization'}>
+          <PublicRoute path={'/authorization'} restricted>
             <Authorization />
             <PublicRoute exact path={'/authorization/login'} restricted>
               <SignInForm />
@@ -109,7 +109,7 @@ function App() {
             <PublicRoute exact path={'/authorization/registration'} restricted>
               <RegistrationForm />
             </PublicRoute>
-          </Route>
+          </PublicRoute>
         </Switch>
         {isLoading && <Loader />}
         <ToastContainer

+ 3 - 1
src/components/Authorization/Registration/RegistrationForm.module.css

@@ -14,7 +14,9 @@
   padding-top: 3px;
   padding-right: 2px;
   border-bottom: none;
-  margin-top: 100px;
+  position: absolute;
+  left: 690px;
+  top: 140px;
 }
 
 .registration_input_wrapper {

+ 3 - 1
src/components/Authorization/SignIn/SignIn.module.css

@@ -14,7 +14,9 @@
   padding-top: 3px;
   padding-right: 2px;
   border-bottom: none;
-  margin-top: 100px;
+  position: absolute;
+  left: 690px;
+  top: 140px;
 }
 .signIn_input {
   width: 100%;