From 16b7ce607e4612784806f766cb9f540d5eb15d50 Mon Sep 17 00:00:00 2001 From: b1ek Date: Sun, 7 May 2023 21:15:13 +1000 Subject: [PATCH] refactor imports (shorten paths) --- .../{CardSmallApartament.jsx => index.jsx} | 0 .../{FavoritesApartamentsList.jsx => index.jsx} | 0 .../src/components/LastView/{LastView.jsx => index.jsx} | 2 +- pairent_frontend_react/src/pages/Favorites/Favorites.jsx | 4 ++-- 4 files changed, 3 insertions(+), 3 deletions(-) rename pairent_frontend_react/src/components/CardSmallApartament/{CardSmallApartament.jsx => index.jsx} (100%) rename pairent_frontend_react/src/components/FavoritesApartamentsList/{FavoritesApartamentsList.jsx => index.jsx} (100%) rename pairent_frontend_react/src/components/LastView/{LastView.jsx => index.jsx} (98%) diff --git a/pairent_frontend_react/src/components/CardSmallApartament/CardSmallApartament.jsx b/pairent_frontend_react/src/components/CardSmallApartament/index.jsx similarity index 100% rename from pairent_frontend_react/src/components/CardSmallApartament/CardSmallApartament.jsx rename to pairent_frontend_react/src/components/CardSmallApartament/index.jsx diff --git a/pairent_frontend_react/src/components/FavoritesApartamentsList/FavoritesApartamentsList.jsx b/pairent_frontend_react/src/components/FavoritesApartamentsList/index.jsx similarity index 100% rename from pairent_frontend_react/src/components/FavoritesApartamentsList/FavoritesApartamentsList.jsx rename to pairent_frontend_react/src/components/FavoritesApartamentsList/index.jsx diff --git a/pairent_frontend_react/src/components/LastView/LastView.jsx b/pairent_frontend_react/src/components/LastView/index.jsx similarity index 98% rename from pairent_frontend_react/src/components/LastView/LastView.jsx rename to pairent_frontend_react/src/components/LastView/index.jsx index d956dff..cb629db 100644 --- a/pairent_frontend_react/src/components/LastView/LastView.jsx +++ b/pairent_frontend_react/src/components/LastView/index.jsx @@ -3,7 +3,7 @@ import ApartamentService from '../../API/ApartamentService'; import {useFetching} from '../../hooks/useFetching'; import {getPageCount, getPagesArray} from '../../utils/Pages'; -import CardSmallApartament from '../../components/CardSmallApartament/CardSmallApartament'; +import CardSmallApartament from '../../components/CardSmallApartament'; import './styles/LastView.css'; diff --git a/pairent_frontend_react/src/pages/Favorites/Favorites.jsx b/pairent_frontend_react/src/pages/Favorites/Favorites.jsx index f356879..cafb97d 100644 --- a/pairent_frontend_react/src/pages/Favorites/Favorites.jsx +++ b/pairent_frontend_react/src/pages/Favorites/Favorites.jsx @@ -1,7 +1,7 @@ import React from 'react'; -import FavoritesApartamentsList from '../../components/FavoritesApartamentsList/FavoritesApartamentsList'; -import LastView from '../../components/LastView/LastView'; +import FavoritesApartamentsList from '../../components/FavoritesApartamentsList'; +import LastView from '../../components/LastView'; import './styles/Favorites.css';