правки поехавшей разметки
This commit is contained in:
@@ -29,16 +29,17 @@ const Home = () => {
|
||||
</Accordion.Header>
|
||||
<Accordion.Body>
|
||||
<Row className='row-cols-auto'>
|
||||
{loading ?
|
||||
(
|
||||
// Отображаем 10 скелетонов
|
||||
Array.from({length: 10}, (_, index) => (
|
||||
<Col key={`skeleton-${index}`}>
|
||||
<SkeletonCompact key={index} width={300} height={400}/>
|
||||
</Col>
|
||||
))
|
||||
)
|
||||
: movies.map(rec => (
|
||||
{/*{loading ?*/}
|
||||
{/* (*/}
|
||||
{/* // Отображаем 10 скелетонов*/}
|
||||
{/* Array.from({length: 10}, (_, index) => (*/}
|
||||
{/* <Col key={`skeleton-${index}`}>*/}
|
||||
{/* <SkeletonCompact key={index} width={300} height={400}/>*/}
|
||||
{/* </Col>*/}
|
||||
{/* ))*/}
|
||||
{/* )*/}
|
||||
{/* :*/}
|
||||
{movies.map(rec => (
|
||||
<Col key={`col-${rec.title}-${rec.year}`}>
|
||||
<CardCompact item={rec} key={`${rec.title}-${rec.year}`}/>
|
||||
</Col>
|
||||
|
||||
Reference in New Issue
Block a user