diff --git a/webapp/src/components/AddUser.js b/webapp/src/components/pages/AddUser.js similarity index 100% rename from webapp/src/components/AddUser.js rename to webapp/src/components/pages/AddUser.js diff --git a/webapp/src/components/AddUser.test.js b/webapp/src/components/pages/AddUser.test.js similarity index 100% rename from webapp/src/components/AddUser.test.js rename to webapp/src/components/pages/AddUser.test.js diff --git a/webapp/src/components/Login.js b/webapp/src/components/pages/Login.js similarity index 97% rename from webapp/src/components/Login.js rename to webapp/src/components/pages/Login.js index 2117483..cab88be 100644 --- a/webapp/src/components/Login.js +++ b/webapp/src/components/pages/Login.js @@ -1,7 +1,7 @@ import React, { useState, useContext } from 'react'; import axios from 'axios'; import { Container, Typography, Button,TextField, Snackbar } from '@mui/material'; -import { AuthContext } from '../AuthContext'; +import { AuthContext } from '../../AuthContext'; import {Link, useNavigate} from "react-router-dom"; const Login = () => { diff --git a/webapp/src/components/Login.test.js b/webapp/src/components/pages/Login.test.js similarity index 97% rename from webapp/src/components/Login.test.js rename to webapp/src/components/pages/Login.test.js index 9f0fa6e..8baf056 100644 --- a/webapp/src/components/Login.test.js +++ b/webapp/src/components/pages/Login.test.js @@ -3,7 +3,7 @@ import { render, fireEvent, screen, waitFor, act } from '@testing-library/react' import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; import Login from './Login'; -import {AuthProvider} from "../AuthContext"; +import {AuthProvider} from "../../AuthContext"; import {MemoryRouter} from "react-router-dom"; const mockAxios = new MockAdapter(axios);