mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 08:52:26 +00:00
clean
Signed-off-by: Ky <virginie.ky@gmail.com>
This commit is contained in:
parent
c25694d465
commit
55c4962b77
@ -1,5 +1,6 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
import { themePropTypes } from 'strapi-helper-plugin';
|
||||||
|
|
||||||
import CardImgWrapper from '../CardImgWrapper';
|
import CardImgWrapper from '../CardImgWrapper';
|
||||||
|
|
||||||
@ -9,7 +10,7 @@ const FileWrapper = styled(CardImgWrapper)`
|
|||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: ${({ theme }) => theme.main.colors.black};
|
background-color: ${({ theme }) => theme.main.colors.black};
|
||||||
${({ hasError, theme }) => hasError && `border: 2px solid ${theme.main.colors.orange}`};
|
${({ hasError, theme }) => hasError && `border: 2px solid ${theme.main.colors.orange};`}
|
||||||
|
|
||||||
.cropper-view-box {
|
.cropper-view-box {
|
||||||
outline-color: ${({ theme }) => theme.main.colors.white};
|
outline-color: ${({ theme }) => theme.main.colors.white};
|
||||||
@ -34,6 +35,7 @@ FileWrapper.defaultProps = {
|
|||||||
|
|
||||||
FileWrapper.propTypes = {
|
FileWrapper.propTypes = {
|
||||||
hasError: PropTypes.bool,
|
hasError: PropTypes.bool,
|
||||||
|
...themePropTypes,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default FileWrapper;
|
export default FileWrapper;
|
||||||
|
@ -232,7 +232,7 @@ const reducer = (state, action) =>
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'ON_SUBMIT_EDIT_EXISTING_FILE': {
|
case 'ON_SUBMIT_EDIT_EXISTING_FILE': {
|
||||||
draftState.fileToEdit.isUploading = false;
|
draftState.fileToEdit.isUploading = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'SET_FILE_TO_EDIT_ERROR': {
|
case 'SET_FILE_TO_EDIT_ERROR': {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user