Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2196 Rev 2805
Línea 1... Línea 1...
1
import React, { useEffect, useState } from 'react'
1
import React, { useEffect, useState } from 'react'
2
import { useDispatch, useSelector } from 'react-redux'
2
import { useDispatch, useSelector } from 'react-redux'
3
import { useParams } from 'react-router-dom'
3
import { useParams } from 'react-router-dom'
4
import { Container } from '@mui/material'
-
 
Línea 5... Línea 4...
5
 
4
 
6
import {
5
import {
7
  fetchFeeds,
6
  fetchFeeds,
8
  setCurrentPage,
7
  setCurrentPage,
Línea 59... Línea 58...
59
  useEffect(() => {
58
  useEffect(() => {
60
    getCompanyVars()
59
    getCompanyVars()
61
  }, [uuid])
60
  }, [uuid])
Línea 62... Línea 61...
62
 
61
 
63
  return (
-
 
64
    <Container>
62
  return (
65
      <AppGrid
63
    <AppGrid
66
        renderSidebar={() => (
64
      renderSidebar={() => (
67
          <GroupInfo
65
        <GroupInfo
68
            cover={backendVars?.cover}
66
          cover={backendVars?.cover}
-
 
67
          image={backendVars?.image}
-
 
68
          name={backendVars?.company_name}
-
 
69
          overview={backendVars?.overview}
-
 
70
          id={backendVars?.company_uuid}
-
 
71
          totalMembers={backendVars?.total_followers}
-
 
72
          groupType={backendVars?.company_size}
-
 
73
          accessibility={backendVars?.industry}
-
 
74
        />
-
 
75
      )}
-
 
76
      renderMain={() => (
-
 
77
        <>
69
            image={backendVars?.image}
78
          <CompanyActions
-
 
79
            name={backendVars?.company_name}
-
 
80
            image={backendVars?.image}
-
 
81
            companyId={backendVars?.company_uuid}
70
            name={backendVars?.company_name}
82
            cover={backendVars?.cover}
71
            overview={backendVars?.overview}
83
            overview={backendVars?.overview}
72
            id={backendVars?.company_uuid}
84
            refetch={getCompanyVars}
-
 
85
            actionLinks={actionsUrls}
-
 
86
          />
-
 
87
          {!isFollower ? <AboutCompany {...backendVars} /> : null}
-
 
88
          {isFollower && !loading ? <FeedList feeds={allFeeds} /> : null}
-
 
89
          <PaginationComponent
73
            totalMembers={backendVars?.total_followers}
90
            pages={pages}
74
            groupType={backendVars?.company_size}
91
            currentActivePage={currentPage}
75
            accessibility={backendVars?.industry}
92
            onChangePage={onChangePageHandler}
76
          />
-
 
77
        )}
-
 
78
        renderMain={() => (
-
 
79
          <>
-
 
80
            <CompanyActions
-
 
81
              name={backendVars?.company_name}
-
 
82
              image={backendVars?.image}
-
 
83
              companyId={backendVars?.company_uuid}
-
 
84
              cover={backendVars?.cover}
-
 
85
              overview={backendVars?.overview}
-
 
86
              refetch={getCompanyVars}
-
 
87
              actionLinks={actionsUrls}
-
 
88
            />
-
 
89
            {!isFollower ? <AboutCompany {...backendVars} /> : null}
-
 
90
            {isFollower && !loading ? <FeedList feeds={allFeeds} /> : null}
-
 
91
            <PaginationComponent
-
 
92
              pages={pages}
-
 
93
              currentActivePage={currentPage}
-
 
94
              onChangePage={onChangePageHandler}
-
 
95
            />
93
          />
96
          </>
94
        </>
97
        )}
95
      )}
98
        renderAside={() => (
96
      renderAside={() => (
99
          <>
97
        <>
100
            <CompanyFollowers companyId={uuid} />
98
          <CompanyFollowers companyId={uuid} />
101
            <AboutCompany {...backendVars} />
99
          <AboutCompany {...backendVars} />
102
          </>
100
        </>
103
        )}
101
      )}
104
      />
-
 
105
    </Container>
102
    />
106
  )
103
  )
Línea 107... Línea 104...
107
}
104
}