Fix design UploadForm

Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2020-02-20 09:09:34 +01:00
parent 51b7d75cdd
commit 8f36a32209
2 changed files with 8 additions and 8 deletions

View File

@ -3,8 +3,10 @@ import PropTypes from 'prop-types';
const Label = styled.label`
position: relative;
height: 204px;
height: 203px;
width: 100%;
margin-top: 36px;
margin-bottom: 18px;
padding-top: 46px;
border: 2px dashed #e3e9f3;
border-radius: 2px;

View File

@ -1,8 +1,8 @@
import React, { useReducer } from 'react';
import PropTypes from 'prop-types';
import { ModalBody } from 'strapi-helper-plugin';
import InputFile from '../InputFile';
import ModalNavWrapper from '../ModalNavWrapper';
import ModalSection from '../ModalSection';
import init from './init';
import reducer, { initialState } from './reducer';
@ -24,12 +24,10 @@ const UploadForm = ({ addFilesToUpload }) => {
return (
<>
<ModalNavWrapper links={links} to={to} onClickGoTo={handleClickGoTo} />
<ModalBody style={{ paddingTop: 35, paddingBottom: 18 }}>
<div className="col-12">
{to === 'computer' && <InputFile onChange={addFilesToUpload} />}
{to === 'url' && <div>COMING SOON</div>}
</div>
</ModalBody>
<ModalSection>
{to === 'computer' && <InputFile onChange={addFilesToUpload} />}
{to === 'url' && <div>COMING SOON</div>}
</ModalSection>
</>
);
};