Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6891 Rev 6892
Línea 18... Línea 18...
18
const View = () => {
18
const View = () => {
19
  const [backendVars, setBackendVars] = useState({})
19
  const [backendVars, setBackendVars] = useState({})
20
  const { uuid } = useParams()
20
  const { uuid } = useParams()
21
  const dispatch = useDispatch()
21
  const dispatch = useDispatch()
Línea 22... Línea 22...
22
 
22
 
23
  useEffect(() => {
23
  const getGroup = () => {
24
    getBackendVars(`/group/view/${uuid}`)
24
    getBackendVars(`/group/view/${uuid}`)
25
      .then((vars) => {
25
      .then((vars) => {
Línea 26... Línea 26...
26
        const actions = {}
26
        const actions = {}
Línea 36... Línea 36...
36
      .catch((err) => {
36
      .catch((err) => {
37
        dispatch(addNotification({ style: 'danger', msg: err }))
37
        dispatch(addNotification({ style: 'danger', msg: err }))
38
        console.log(`Error: ${err}`)
38
        console.log(`Error: ${err}`)
39
        throw new Error(err)
39
        throw new Error(err)
40
      })
40
      })
-
 
41
  }
-
 
42
 
-
 
43
  useEffect(() => {
-
 
44
    getGroup()
41
  }, [])
45
  }, [])
Línea 42... Línea 46...
42
 
46
 
43
  return (
47
  return (
44
    <main className="w-100">
48
    <main className="w-100">
45
      <div className="container p-0 app__body layout__content">
49
      <div className="container p-0 app__body layout__content">
46
        <div className="d-flex flex-column">
50
        <div className="d-flex flex-column">
47
          <InfoWidget {...backendVars} />
51
          <InfoWidget {...backendVars} />
48
        </div>
52
        </div>
49
        <div className="d-flex flex-column" style={{ gap: '.5rem' }}>
53
        <div className="d-flex flex-column" style={{ gap: '.5rem' }}>
Línea 50... Línea 54...
50
          <GroupActions {...backendVars} />
54
          <GroupActions {...backendVars} refetch={getGroup} />
51
 
55
 
52
          {backendVars.withoutFeeds ? (
56
          {backendVars.withoutFeeds ? (
53
            <AboutGroup {...backendVars} />
57
            <AboutGroup {...backendVars} />