|
@@ -9,10 +9,12 @@ import {
|
|
import { actionClearPostsOne } from '../../redux/reducers/post/postReducer'
|
|
import { actionClearPostsOne } from '../../redux/reducers/post/postReducer'
|
|
import { Button, message } from 'antd'
|
|
import { Button, message } from 'antd'
|
|
import {
|
|
import {
|
|
- Basic,
|
|
|
|
|
|
+ Dropzone
|
|
|
|
+} from '../../components/UploadFiles'
|
|
|
|
+import {
|
|
SortableContainer,
|
|
SortableContainer,
|
|
- SortableItem,
|
|
|
|
-} from '../../components/Dropzone'
|
|
|
|
|
|
+ SortableItem
|
|
|
|
+} from '../../components/Sortable'
|
|
import { arrayMoveImmutable } from 'array-move'
|
|
import { arrayMoveImmutable } from 'array-move'
|
|
import { Row, Col } from 'antd'
|
|
import { Row, Col } from 'antd'
|
|
import { history } from '../../helpers'
|
|
import { history } from '../../helpers'
|
|
@@ -115,7 +117,7 @@ const PostEditor = ({
|
|
const checkLength = () => {
|
|
const checkLength = () => {
|
|
if (state?.images?.length > 8) {
|
|
if (state?.images?.length > 8) {
|
|
console.log('state?.images?.length', state?.images?.length)
|
|
console.log('state?.images?.length', state?.images?.length)
|
|
- message.error('Error, upload Max 8 elements')
|
|
|
|
|
|
+ message.error('Error, please, upload maximum 8 elements')
|
|
state['images'] = []
|
|
state['images'] = []
|
|
return false
|
|
return false
|
|
} else {
|
|
} else {
|
|
@@ -127,7 +129,7 @@ const PostEditor = ({
|
|
<section className="Post">
|
|
<section className="Post">
|
|
<Row>
|
|
<Row>
|
|
<Col span={12} offset={6}>
|
|
<Col span={12} offset={6}>
|
|
- <Basic onLoad={onFileDrop} />
|
|
|
|
|
|
+ <Dropzone onLoad={onFileDrop} />
|
|
<Col offset={1}>
|
|
<Col offset={1}>
|
|
|
|
|
|
<SortableContainer
|
|
<SortableContainer
|