Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16753 Rev 16755
Línea 9... Línea 9...
9
import { addFeed, fetchFeeds } from '../../../redux/feed/feed.actions'
9
import { addFeed, fetchFeeds } from '../../../redux/feed/feed.actions'
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, closeSurveyModal } = props // Redux actions
15
  const { postUrl, isOpen, currentPage, timelineUrl, state } = 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 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(() => {
-
 
124
    console.log(state)
123
  useEffect(() => {
125
    clearErrors()
124
    clearErrors()
Línea 126... Línea 125...
126
  }, [isOpen])
125
  }, [isOpen])
127
 
126
 
Línea 222... Línea 221...
222
          </Button>
221
          </Button>
223
          <Button
222
          <Button
224
            variant="light"
223
            variant="light"
225
            size="sm"
224
            size="sm"
226
            disabled={loading}
225
            disabled={loading}
227
            onClick={closeSurveyModal}
226
            onClick={closeModal}
228
          >
227
          >
229
            Cancelar
228
            Cancelar
230
          </Button>
229
          </Button>
231
        </Modal.Footer>
230
        </Modal.Footer>
232
      </form>
231
      </form>