Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16752 | Rev 16755 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16752 Rev 16753
Línea 10... Línea 10...
10
import { addNotification } from '../../../redux/notification/notification.actions'
10
import { addNotification } from '../../../redux/notification/notification.actions'
11
import { closeSurveyModal } from '../../../redux/survey-modal/surveyModal.actions'
11
import { closeSurveyModal } from '../../../redux/survey-modal/surveyModal.actions'
Línea 12... Línea 12...
12
 
12
 
13
const SurveyModal = (props) => {
13
const SurveyModal = (props) => {
14
  const { addNotification, addFeed } = props // Redux actions
14
  const { addNotification, addFeed } = props // Redux actions
15
  const { postUrl, isOpen, currentPage, timelineUrl } = props // Redux states
15
  const { postUrl, isOpen, currentPage, timelineUrl, state } = props // Redux states
16
  const [loading, setLoading] = useState(false)
16
  const [loading, setLoading] = useState(false)
17
  const [selectedDate, setSelectedDate] = useState(null)
17
  const [selectedDate, setSelectedDate] = useState(null)
Línea 18... Línea 18...
18
  const [optionsNumber, setOptionsNumber] = useState(2)
18
  const [optionsNumber, setOptionsNumber] = useState(2)
Línea 119... Línea 119...
119
      })
119
      })
120
      .finally(() => setLoading(false))
120
      .finally(() => setLoading(false))
121
  })
121
  })
Línea 122... Línea 122...
122
 
122
 
-
 
123
  useEffect(() => {
123
  useEffect(() => {
124
    console.log(state)
124
    clearErrors()
125
    clearErrors()
Línea 125... Línea 126...
125
  }, [isOpen])
126
  }, [isOpen])
126
 
127
 
Línea 235... Línea 236...
235
 
236
 
236
const mapStateToProps = (state) => ({
237
const mapStateToProps = (state) => ({
237
  isOpen: state.surveyModal.isOpen,
238
  isOpen: state.surveyModal.isOpen,
238
  postUrl: state.surveyModal.postUrl,
239
  postUrl: state.surveyModal.postUrl,
239
  currentPage: state.feed.currentPage,
240
  currentPage: state.feed.currentPage,
-
 
241
  timelineUrl: state.feed.timelineUrl,
240
  timelineUrl: state.feed.timelineUrl
242
  state: state
Línea 241... Línea 243...
241
})
243
})
242
 
244
 
243
const mapDispatchToProps = {
245
const mapDispatchToProps = {