• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

화면이 짜부가 됬습니다..

20.10.28 00:37 작성 조회수 184

0

그리드가 설정이 되야되는데 안먹히네요..

antd 문제인가해서 모듈도 지워봤는데 먹통입니다.

<Row gutter={[16,16]}>
                    {movies && movies.map((movieindex)=>(
                        <React.Fragment key={index}>
                            <GridCards 
                                landingPage
                                image={movie.poster_path ? 
                                    `${IMAGE_BASE_URL}w500${movie.poster_path}`null}
                                movieId={movie.id}
                                movieName={movie.original_title}
                            />
                        </React.Fragment>
                    ))}
                    
                </Row>

const GridCards = (props=> {
    return (
        <Col lg={6} md={8} xs={24}>
            <div style={{position: 'relative'}}>
                <a href={`/movie/${props.movieId}`}>
                        <img style={{width:'100%'height:'320px'}} src={props.image} alt={props.movieName}/>
                    </a>              
            </div>
        </Col>
    )
}

답변 2

·

답변을 작성해보세요.

0

아 넵  수고하셨습니다 ~ !!! 

0

Zero_ A님의 프로필

Zero_ A

질문자

2020.10.28

antd 문제였습니다. 

material-ui  Grid 사용하니 해결되네요