Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6762 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6762 Rev 6970
Línea 1... Línea 1...
1
import React, { useEffect, useState } from 'react'
1
import React, { useEffect, useState } from 'react'
2
import { axios } from '../../../utils'
2
import { axios } from '../../../utils'
3
import { useSelector } from 'react-redux'
3
import { useSelector } from 'react-redux'
Línea 4... Línea 4...
4
 
4
 
-
 
5
import EmptySection from '../../UI/EmptySection'
Línea 5... Línea 6...
5
import EmptySection from '../../UI/EmptySection'
6
import { Link } from 'react-router-dom'
6
 
7
 
7
const SuggestWidget = ({
8
const SuggestWidget = ({
8
  title = 'Mis Grupos:',
9
  title = 'Mis Grupos:',
Línea 62... Línea 63...
62
    </div>
63
    </div>
63
  )
64
  )
64
}
65
}
Línea 65... Línea 66...
65
 
66
 
-
 
67
const Item = ({ suggest, btnLabelAccept }) => {
66
const Item = ({ suggest, btnLabelAccept }) => {
68
  const labels = useSelector(({ intl }) => intl.labels)
67
  return (
69
  return (
68
    <div className="user">
70
    <div className="user">
69
      <div className="d-inline-flex align-items-center">
71
      <div className="d-inline-flex align-items-center">
70
        <a href={suggest.profile} target="_blank" rel="noreferrer">
72
        <Link to={suggest.profile}>
71
          <img src={suggest.image} alt={`${suggest.name} profile image`} />
73
          <img src={suggest.image} alt={`${suggest.name} profile image`} />
72
        </a>
74
        </Link>
73
        <h4 className="break-ellipsis">{suggest.name}</h4>
75
        <h4 className="break-ellipsis">{suggest.name}</h4>
74
      </div>
76
      </div>
75
      <a className="btn btn-primary ml-auto" href={suggest.profile}>
77
      <Link to={suggest.profile} className="btn btn-primary ml-auto">
76
        {btnLabelAccept}
78
        {btnLabelAccept || labels.view_profile}
77
      </a>
79
      </Link>
78
    </div>
80
    </div>
79
  )
81
  )
Línea 80... Línea 82...
80
}
82
}