Skip to content

Commit

Permalink
Moved pages
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSychev2005 committed Sep 20, 2024
1 parent d1c06d8 commit df3b246
Show file tree
Hide file tree
Showing 40 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';
import css from './PaginationButtons.module.css';
import { PAGE_SIZES_SELECTOR } from '../AdminPage/constants';
import { PAGE_SIZES_SELECTOR } from '../constants';

function PaginationButtons({ currentPage, totalPages, onPageChange, pageSize, onPageSizeChange }) {
const goToPreviousPage = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useNavigate } from 'react-router-dom';
import PaginationButtons from './PaginationButtons';
import axios from 'axios';
import useSWR from 'swr';
import { DEFAULT_PAGE_SIZE } from '../AdminPage/constants';
import { DEFAULT_PAGE_SIZE } from '../constants';

const COLUMN_NAMES = [
'ID', 'Person', 'Position', 'Company', 'Region ID', 'Phone', 'EDRPOU', 'Adress', 'IsDeleted', 'IsApproved'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useNavigate } from 'react-router-dom';
import PaginationButtons from './PaginationButtons';
import axios from 'axios';
import useSWR from 'swr';
import { DEFAULT_PAGE_SIZE } from '../AdminPage/constants';
import { DEFAULT_PAGE_SIZE } from '../constants';

const COLUMN_NAMES = ['ID', 'ФІО', 'Пошта'];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Login from './/Login';
import Login from './Login';
import classes from './AuthorizationPage.module.css';

const AuthorizationPage = () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import validator from 'validator';
import EyeVisible from './EyeVisible';
import EyeInvisible from './EyeInvisible';
import classes from './LoginPage.module.css';
import { useAuth } from '../../hooks/';
import checkIfStaff from '../../pages/AdminPage/checkIfStaff';
import { useAuth } from '../../hooks';
import checkIfStaff from '../AdminPage/checkIfStaff';

const LoginContent = () => {
const { login } = useAuth();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from 'react';
import { PropTypes } from 'prop-types';
import EyeInvisible from '../../../../components/Authorization/EyeInvisible';
import EyeVisible from '../../../../components/Authorization/EyeVisible';
import EyeInvisible from '../../../Authorization/EyeInvisible';
import EyeVisible from '../../../Authorization/EyeVisible';
import preventEnterSubmit from '../../../../utils/preventEnterSubmit';
import css from './PasswordField.module.css';
import { PASSWORD_PATTERN } from '../../../../constants/constants';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { useNavigate } from 'react-router-dom';
import { useParams } from 'react-router-dom';
import { PropTypes } from 'prop-types';
import { PASSWORD_PATTERN } from '../../../../../constants/constants';
import EyeInvisible from '../../../../../components/Authorization/EyeInvisible';
import EyeVisible from '../../../../../components/Authorization/EyeVisible';
import EyeInvisible from '../../../../Authorization/EyeInvisible';
import EyeVisible from '../../../../Authorization/EyeVisible';
import styles from './RestorePasswordFormContent.module.css';

export function RestorePasswordFormContentComponent({ setIsValid }) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react';
import axios from 'axios';
import { useParams } from 'react-router-dom';
import AuthorizationPage from '../../Authorization/AuthorizationPage';
import AuthorizationPage from '../../../pages/Authorization/AuthorizationPage';
import styles from './ActivateProfileModal.module.css';

export function ActivationProfilePage() {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { useNavigate } from 'react-router-dom';
import { toast } from 'react-toastify';
import axios from 'axios';
import { Tooltip } from 'antd';
import EyeInvisible from '../../Authorization/EyeInvisible';
import EyeVisible from '../../Authorization/EyeVisible';
import EyeInvisible from '../../../pages/Authorization/EyeInvisible';
import EyeVisible from '../../../pages/Authorization/EyeVisible';
import styles from './SignUpFormContent.module.css';
import PropTypes from 'prop-types';
import {
Expand Down
6 changes: 3 additions & 3 deletions FrontEnd/src/routes/AdminRouter.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ToastContainer } from 'react-toastify';
import '../pages/AdminPage/AdminGlobal.css';
import Header from '../components/Admin/Header/Header';
import Header from '../pages/AdminPage/Header/Header';
import Menu from '../pages/AdminPage/Menu/Menu';
import UserDetail from '../pages/AdminPage/DetailView/UserDetail';
import UserTable from '../pages/UserProfilesTable/UserTable';
import ProfilesTable from '../pages/UserProfilesTable/ProfilesTable';
import UserTable from '../pages/AdminPage/UserProfilesTable/UserTable';
import ProfilesTable from '../pages/AdminPage/UserProfilesTable/ProfilesTable';
import ProfileDetail from '../pages/AdminPage/DetailView/ProfileDetail';
import css from '../pages/AdminPage/AdminPage.module.css';
import { Routes, Route } from 'react-router-dom';
Expand Down
10 changes: 5 additions & 5 deletions FrontEnd/src/routes/ClientRouter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { SWRConfig } from 'swr';
import 'react-toastify/dist/ReactToastify.css';
import customTheme from '../pages/CustomThemes/customTheme.js';

import AuthorizationPage from '../components/Authorization/AuthorizationPage';
import AuthorizationPage from '../pages/Authorization/AuthorizationPage';
import CookiesPolicyComponent from '../pages/CookiesPolicyPage/CookiesPolicyComponent';
import Footer from '../components/Footer/Footer';
import Header from '../components/Header/Header';
Expand All @@ -17,10 +17,10 @@ import PrivacyPolicy from '../pages/PrivacyPolicyPage/PrivacyPolicyPage';
import ProfileDetailPage from '../pages/ProfileDetail/ProfileDetailPage';
import ProfileListPage from '../pages/ProfileList/ProfileListPage';
import ProfilePage from '../pages/ProfilePage/ProfilePage';
import { SignUpPage } from '../components/SignUp/SignUp/SignUpPage';
import { SignUpModalPage } from '../components/SignUp/SignUp/SignUpModalPage';
import { ResendActivationPage } from '../components/SignUp/SignUp/ResendActivationPage';
import { ActivationProfilePage } from '../components/SignUp/SignUp/ActivateProfilePage';
import { SignUpPage } from '../pages/SignUp/SignUp/SignUpPage';
import { SignUpModalPage } from '../pages/SignUp/SignUp/SignUpModalPage';
import { ResendActivationPage } from '../pages/SignUp/SignUp/ResendActivationPage';
import { ActivationProfilePage } from '../pages/SignUp/SignUp/ActivateProfilePage';
import { SendEmailRestorePasswordPage } from '../pages/RestorePassword/Pages/SendEmailRestorePasswordPage';
import { RestorePasswordPage } from '../pages/RestorePassword/Pages/RestorePasswordPage';
import { RestorePasswordModalPage } from '../pages/RestorePassword/Pages/RestorePasswordModalPage';
Expand Down

0 comments on commit df3b246

Please sign in to comment.