mirror of
https://github.com/strapi/strapi.git
synced 2025-08-09 17:26:11 +00:00
Fix design UploadForm
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
51b7d75cdd
commit
8f36a32209
@ -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;
|
||||
|
@ -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>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user