mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +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 PropTypes from 'prop-types';
|
||||
import { themePropTypes } from 'strapi-helper-plugin';
|
||||
|
||||
import CardImgWrapper from '../CardImgWrapper';
|
||||
|
||||
@ -9,7 +10,7 @@ const FileWrapper = styled(CardImgWrapper)`
|
||||
display: flex;
|
||||
position: relative;
|
||||
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 {
|
||||
outline-color: ${({ theme }) => theme.main.colors.white};
|
||||
@ -34,6 +35,7 @@ FileWrapper.defaultProps = {
|
||||
|
||||
FileWrapper.propTypes = {
|
||||
hasError: PropTypes.bool,
|
||||
...themePropTypes,
|
||||
};
|
||||
|
||||
export default FileWrapper;
|
||||
|
@ -232,7 +232,7 @@ const reducer = (state, action) =>
|
||||
break;
|
||||
}
|
||||
case 'ON_SUBMIT_EDIT_EXISTING_FILE': {
|
||||
draftState.fileToEdit.isUploading = false;
|
||||
draftState.fileToEdit.isUploading = true;
|
||||
break;
|
||||
}
|
||||
case 'SET_FILE_TO_EDIT_ERROR': {
|
||||
|
Loading…
x
Reference in New Issue
Block a user