Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2184 Rev 2614
Línea 1... Línea 1...
1
import React, { useRef, useState } from 'react'
1
import React, { useRef, useState } from 'react'
2
import { axios } from '../../utils'
2
import { axios } from '../../utils'
3
import { Avatar } from '@mui/material'
3
import { Avatar } from '@mui/material'
4
import { useHistory } from 'react-router-dom'
4
import { useNavigate } from 'react-router-dom'
5
import { addNotification } from 'store/notification/notification.actions'
5
import { addNotification } from 'store/notification/notification.actions'
6
import { useDispatch, useSelector } from 'react-redux'
6
import { useDispatch, useSelector } from 'react-redux'
7
import styled from 'styled-components'
7
import styled from 'styled-components'
Línea 8... Línea 8...
8
 
8
 
Línea 97... Línea 97...
97
  const [isShowConfirmation, setIsShowConfirmation] = useState(false)
97
  const [isShowConfirmation, setIsShowConfirmation] = useState(false)
98
  const [loading, setLoading] = useState(false)
98
  const [loading, setLoading] = useState(false)
99
  const confirmUrl = useRef('')
99
  const confirmUrl = useRef('')
100
  const labels = useSelector(({ intl }) => intl.labels)
100
  const labels = useSelector(({ intl }) => intl.labels)
101
  const dispatch = useDispatch()
101
  const dispatch = useDispatch()
102
  const history = useHistory()
102
  const navigate = useNavigate()
Línea 103... Línea 103...
103
 
103
 
104
  const showConfirm = (url = '') => {
104
  const showConfirm = (url = '') => {
105
    setIsShowConfirmation(true)
105
    setIsShowConfirmation(true)
106
    confirmUrl.current = url
106
    confirmUrl.current = url
Línea 199... Línea 199...
199
        console.log('>>: error > ', error)
199
        console.log('>>: error > ', error)
200
      })
200
      })
201
  }
201
  }
Línea 202... Línea 202...
202
 
202
 
203
  const navigateTo = (url) => {
203
  const navigateTo = (url) => {
204
    history.push(url)
204
    navigate(url)
Línea 205... Línea 205...
205
  }
205
  }
206
 
206
 
207
  return (
207
  return (