Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4263 Rev 5397
Línea 1... Línea 1...
1
/* eslint-disable react/prop-types */
1
/* eslint-disable react/prop-types */
2
import React from "react";
2
import React from 'react'
3
import { axios } from "../../../../utils";
3
import { axios } from '../../../../utils'
Línea 4... Línea 4...
4
 
4
 
5
const UserDropdown = ({ show, linkAdmin, linkImpersonate }) => {
-
 
6
 
5
const UserDropdown = ({ show, linkAdmin, linkImpersonate }) => {
7
  const getAdminUrl = async () => {
6
  const getAdminUrl = async () => {
8
    try {
7
    try {
9
      const { data } = await axios.get('/backend/signin-admin')
8
      const { data } = await axios.get('/backend/signin-admin')
10
      if (data.success) return window.open(data.data);
9
      if (data.success) return window.open(data.data)
11
    } catch (error) {
10
    } catch (error) {
12
      console.log('>>: error > ', error)
11
      console.log('>>: error > ', error)
13
    }
12
    }
Línea 14... Línea 13...
14
  }
13
  }
Línea 15... Línea 14...
15
 
14
 
16
  if (!show) return <></>;
15
  if (!show) return <></>
17
 
16
 
18
  return (
17
  return (
Línea 41... Línea 40...
41
          <a className='logOutContainer__a' href="/signout">
40
          <a className='logOutContainer__a' href="/signout">
42
            Cerrar sesión
41
            Cerrar sesión
43
          </a>
42
          </a>
44
        </li>
43
        </li>
45
      </ul>
44
      </ul>
46
    </div >
45
    </div>
47
  )
46
  )
48
}
47
}
Línea 49... Línea 48...
49
 
48