Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 5 Rev 517
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
2
import { Avatar } from '@mui/material'
2
import { Avatar } from '@mui/material'
3
import { useSelector } from 'react-redux'
3
import { useSelector } from 'react-redux'
4
import parse from 'html-react-parser'
4
import parse from 'html-react-parser'
-
 
5
import { Link } from 'react-router-dom'
Línea 5... Línea 6...
5
 
6
 
6
const UserInfo = ({
7
const UserInfo = ({
7
  cover = '',
8
  cover = '',
8
  image = '',
9
  image = '',
Línea 42... Línea 43...
42
  )
43
  )
43
}
44
}
Línea 44... Línea 45...
44
 
45
 
45
const StatItem = ({ title = '', number = 0, url = '' }) => {
46
const StatItem = ({ title = '', number = 0, url = '' }) => {
46
  return (
47
  return (
47
    <a
48
    <Link
48
      href={url}
49
      to={url}
49
      className="sidebar__stat"
50
      className="sidebar__stat"
50
      target="secondary"
51
      target="secondary"
51
      onClick={(e) => !url && e.preventDefault()}
52
      onClick={(e) => !url && e.preventDefault()}
52
    >
53
    >
53
      <span>{title}</span>
54
      <span>{title}</span>
54
      <span className="sidebar__stat-number">{number}</span>
55
      <span className="sidebar__stat-number">{number}</span>
55
    </a>
56
    </Link>
56
  )
57
  )
Línea 57... Línea 58...
57
}
58
}