• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

드랍존이 생성되지않습니다.

21.04.01 02:43 작성 조회수 164

0

같은코드로 작성했는데 드랍존이 생성되지않습니다.

한번만 봐주세요!

답변 3

·

답변을 작성해보세요.

0

차경철님의 프로필

차경철

질문자

2021.04.01

감사합니다! 해결했습니다!

 {({ getRootPropsgetInputProps })=>(
                    <div style={{width : '300px'height :'240px'border:'1px solid lightgray'display : 'flex',
                        alignItems:'center'justifyContent:'center'}} {...getRootProps()}>
                    <input {...getInputProps()}/>
                    <icon type="plus" style={{fontSize : '3rem'}}/>
                    </div>
                )} <- 이부분을 }} 이렇게 해놨었더라구요

0

안녕하세요 차경철님 늦게 까지 고생하셨네요! 

근데 그 아래 나온 경고들은 안보이는것과는 관계가 없을텐데 
Css 문제 인거 같긴한데 그쪽부분 다시 한번 체크해봐주세요 ~ 
그래도 안되면 다시 알려주세요 ~ 

0

차경철님의 프로필

차경철

질문자

2021.04.01

Compiled with warnings.

[1]

[1] src\_reducers\user_reducer.js

[1]   Line 9:1:  Unexpected default export of anonymous function  import/no-anonymous-default-export

[1]

[1] src\components\views\LoginPage\LoginPage.js

[1]   Line 75:11:  'dirty' is assigned a value but never used        no-unused-vars

[1]   Line 80:11:  'handleReset' is assigned a value but never used  no-unused-vars

[1]

[1] src\components\views\RegisterPage\RegisterPage.js

[1]   Line 92:11:  'dirty' is assigned a value but never used        no-unused-vars

[1]   Line 97:11:  'handleReset' is assigned a value but never used  no-unused-vars

[1]

[1] src\components\views\VideoUploadPage\VideoUploadPage.js

[1]   Line 3:35:  'message' is defined but never used  no-unused-vars

[1]   Line 3:51:  'Icon' is defined but never used     no-unused-vars

[1]

[1] src\hoc\auth.js

[1]   Line 6:1:  Unexpected default export of anonymous function  import/no-anonymous-default-export

[1]

[1] Search for the keywords to learn more about each warning.

[1] To ignore, add // eslint-disable-next-line to the line before.

혹시나 이것때문에 안되는건지해서 같이 올려봅니다. 오늘은 이만 잠을 청해야겠습니다. ㅠ