Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6838 Rev 6851
Línea 15... Línea 15...
15
const LinkedInCompany = () => {
15
const LinkedInCompany = () => {
16
  const [backendVars, setBackendVars] = useState(null)
16
  const [backendVars, setBackendVars] = useState(null)
17
  const [actionsUrls, setActionsUrls] = useState(null)
17
  const [actionsUrls, setActionsUrls] = useState(null)
18
  const [isFollower, setIsFollower] = useState(false)
18
  const [isFollower, setIsFollower] = useState(false)
19
  const { uuid } = useParams()
19
  const { uuid } = useParams()
-
 
20
  const dispatch = useDipatch()
Línea 20... Línea 21...
20
 
21
 
21
  const getCompanyVars = () => {
22
  const getCompanyVars = () => {
22
    getBackendVars(`/company/view/${uuid}`)
23
    getBackendVars(`/company/view/${uuid}`)
23
      .then((vars) => {
24
      .then((vars) => {
Línea 30... Línea 31...
30
 
31
 
31
          actions[key] = value
32
          actions[key] = value
Línea 32... Línea 33...
32
        })
33
        })
33
 
-
 
-
 
34
 
34
        setActionsUrls(actions)
35
        setActionsUrls(actions)
35
 
36
        dispatch(setTimelineUrl(vars.link_timeline))
36
        setIsFollower(!!vars.link_unfollow)
37
        setIsFollower(!!vars.link_unfollow)
37
        setBackendVars(vars)
38
        setBackendVars(vars)
38
      })
39
      })