Línea 1... |
Línea 1... |
1 |
import React, { useState, useEffect } from 'react'
|
1 |
import React, { useState, useEffect } from 'react'
|
2 |
import { useForm } from 'react-hook-form'
|
2 |
import { useForm } from 'react-hook-form'
|
3 |
import { connect, useSelector } from 'react-redux'
|
- |
|
4 |
import { CKEditor } from 'ckeditor4-react'
|
3 |
import { CKEditor } from 'ckeditor4-react'
|
- |
|
4 |
import { Modal, Button } from 'react-bootstrap'
|
- |
|
5 |
import { connect, useSelector } from 'react-redux'
|
5 |
import { axios, CKEDITOR_OPTIONS } from '../../utils'
|
6 |
import { axios, CKEDITOR_OPTIONS } from '../../utils'
|
6 |
import Modal from 'react-bootstrap/Modal'
|
- |
|
7 |
import Button from 'react-bootstrap/Button'
|
- |
|
8 |
|
- |
|
9 |
import {
|
7 |
import {
|
10 |
closeShareModal,
|
8 |
closeShareModal,
|
11 |
openShareModal,
|
9 |
openShareModal,
|
12 |
setModalType,
|
10 |
setModalType,
|
13 |
} from '../../redux/share-modal/shareModal.actions'
|
11 |
} from '../../redux/share-modal/shareModal.actions'
|
14 |
import { addNotification } from '../../redux/notification/notification.actions'
|
12 |
import { addNotification } from '../../redux/notification/notification.actions'
|
15 |
import { addFeed, fetchFeeds } from '../../redux/feed/feed.actions'
|
13 |
import { addFeed, fetchFeeds } from '../../redux/feed/feed.actions'
|
Línea 16... |
Línea 14... |
16 |
|
14 |
|
17 |
import { shareModalTypes } from '../../redux/'
|
15 |
import { shareModalTypes } from '../../redux/share-modal/shareModal.types'
|
Línea 18... |
Línea 16... |
18 |
import { feedTypes } from '../../redux/feed/feed.types'
|
16 |
import { feedTypes } from '../../redux/feed/feed.types'
|
19 |
|
17 |
|
20 |
import FormErrorFeedback from '../../../shared/form-error-feedback/FormErrorFeedback'
|
18 |
import Spinner from '../UI/Spinner'
|
21 |
import Spinner from '../../../shared/loading-spinner/Spinner'
|
19 |
import ConfirmModal from '../modals/ConfirmModal'
|
Línea 22... |
Línea 20... |
22 |
import DropzoneComponent from '../../../shared/dropzone/DropzoneComponent'
|
20 |
import FormErrorFeedback from '../UI/FormErrorFeedback'
|
23 |
import ConfirmModal from '../../../shared/confirm-modal/ConfirmModal'
|
21 |
import DropzoneComponent from '../dropzone/DropzoneComponent'
|
24 |
|
22 |
|
25 |
const ShareModal = ({
|
23 |
const ShareModal = ({
|