Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1947 Rev 2614
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
2
import { useHistory } from 'react-router-dom'
2
import { useNavigate } from 'react-router-dom'
3
import { Avatar, Box, styled } from '@mui/material'
3
import { Avatar, Box, styled } from '@mui/material'
Línea 4... Línea 4...
4
 
4
 
5
export const WidgetWrapper = styled(Box)(({ theme }) => ({
5
export const WidgetWrapper = styled(Box)(({ theme }) => ({
6
  backgroundColor: theme.palette.background.default,
6
  backgroundColor: theme.palette.background.default,
Línea 86... Línea 86...
86
  url = '',
86
  url = '',
87
  timeElapsed = '',
87
  timeElapsed = '',
88
  children,
88
  children,
89
  ...rest
89
  ...rest
90
}) => {
90
}) => {
91
  const history = useHistory()
91
  const navigate = useNavigate()
Línea 92... Línea 92...
92
 
92
 
93
  const goToProfile = () => {
93
  const goToProfile = () => {
94
    if (!url) return
94
    if (!url) return
95
    history.replace(url)
95
    navigate(url)
Línea 96... Línea 96...
96
  }
96
  }
97
 
97
 
98
  return (
98
  return (