From 925b5b855a52b62d6b2ec188de34650d7b3f2064 Mon Sep 17 00:00:00 2001 From: b1ek Date: Mon, 8 May 2023 14:32:44 +1000 Subject: [PATCH] shorten import paths --- pairent_frontend_react/src/App.jsx | 6 +++--- .../src/components/AppRouter/{AppRouter.jsx => index.jsx} | 0 .../CardApartament/{CardApartament.jsx => index.jsx} | 0 .../src/components/FavoritesApartamentsList/index.jsx | 4 ++-- .../src/components/Footer/{Footer.jsx => index.jsx} | 0 .../src/components/Header/{Header.jsx => index.jsx} | 0 .../components/UI/Pagination/{Pagination.jsx => index.jsx} | 0 7 files changed, 5 insertions(+), 5 deletions(-) rename pairent_frontend_react/src/components/AppRouter/{AppRouter.jsx => index.jsx} (100%) rename pairent_frontend_react/src/components/CardApartament/{CardApartament.jsx => index.jsx} (100%) rename pairent_frontend_react/src/components/Footer/{Footer.jsx => index.jsx} (100%) rename pairent_frontend_react/src/components/Header/{Header.jsx => index.jsx} (100%) rename pairent_frontend_react/src/components/UI/Pagination/{Pagination.jsx => index.jsx} (100%) diff --git a/pairent_frontend_react/src/App.jsx b/pairent_frontend_react/src/App.jsx index 38725c4..5475910 100644 --- a/pairent_frontend_react/src/App.jsx +++ b/pairent_frontend_react/src/App.jsx @@ -1,9 +1,9 @@ import React from 'react'; import { BrowserRouter } from 'react-router-dom'; -import Header from './components/Header/Header'; -import AppRouter from './components/AppRouter/AppRouter'; -import Footer from './components/Footer/Footer'; +import Header from './components/Header'; +import AppRouter from './components/AppRouter'; +import Footer from './components/Footer'; import './App.css'; diff --git a/pairent_frontend_react/src/components/AppRouter/AppRouter.jsx b/pairent_frontend_react/src/components/AppRouter/index.jsx similarity index 100% rename from pairent_frontend_react/src/components/AppRouter/AppRouter.jsx rename to pairent_frontend_react/src/components/AppRouter/index.jsx diff --git a/pairent_frontend_react/src/components/CardApartament/CardApartament.jsx b/pairent_frontend_react/src/components/CardApartament/index.jsx similarity index 100% rename from pairent_frontend_react/src/components/CardApartament/CardApartament.jsx rename to pairent_frontend_react/src/components/CardApartament/index.jsx diff --git a/pairent_frontend_react/src/components/FavoritesApartamentsList/index.jsx b/pairent_frontend_react/src/components/FavoritesApartamentsList/index.jsx index 31e1536..fa44cba 100644 --- a/pairent_frontend_react/src/components/FavoritesApartamentsList/index.jsx +++ b/pairent_frontend_react/src/components/FavoritesApartamentsList/index.jsx @@ -3,8 +3,8 @@ import ApartamentService from '../../API/ApartamentService'; import {useFetching} from '../../hooks/useFetching'; import {getPageCount} from '../../utils/Pages'; -import CardApartament from '../CardApartament/CardApartament'; -import Pagination from '../UI/Pagination/Pagination'; +import CardApartament from '../CardApartament'; +import Pagination from '../UI/Pagination'; const FavoritesApartamentsList = () => { const [apartamentsFavorites, setApartamentsFavorites] = useState([]) diff --git a/pairent_frontend_react/src/components/Footer/Footer.jsx b/pairent_frontend_react/src/components/Footer/index.jsx similarity index 100% rename from pairent_frontend_react/src/components/Footer/Footer.jsx rename to pairent_frontend_react/src/components/Footer/index.jsx diff --git a/pairent_frontend_react/src/components/Header/Header.jsx b/pairent_frontend_react/src/components/Header/index.jsx similarity index 100% rename from pairent_frontend_react/src/components/Header/Header.jsx rename to pairent_frontend_react/src/components/Header/index.jsx diff --git a/pairent_frontend_react/src/components/UI/Pagination/Pagination.jsx b/pairent_frontend_react/src/components/UI/Pagination/index.jsx similarity index 100% rename from pairent_frontend_react/src/components/UI/Pagination/Pagination.jsx rename to pairent_frontend_react/src/components/UI/Pagination/index.jsx