diff --git a/src/pages/HomePage.js b/src/pages/HomePage.js index c71ce11..fd470f8 100644 --- a/src/pages/HomePage.js +++ b/src/pages/HomePage.js @@ -28,18 +28,18 @@ const Home = () => { Фильмы - - {/*{loading ?*/} - {/* (*/} - {/* // Отображаем 10 скелетонов*/} - {/* Array.from({length: 10}, (_, index) => (*/} - {/* */} - {/* */} - {/* */} - {/* ))*/} - {/* )*/} - {/* :*/} - {movies.map(rec => ( + + {loading ? + ( + // Отображаем 10 скелетонов + Array.from({length: 10}, (_, index) => ( + + + + )) + ) + : + movies.map(rec => (