| Línea 1... |
Línea 1... |
| 1 |
/* eslint-disable react/prop-types */
|
1 |
/* eslint-disable react/prop-types */
|
| 2 |
import React, { useEffect, useState } from 'react'
|
2 |
import React, { useEffect, useState } from 'react'
|
| 3 |
import FeedSection from '../../../../../dashboard/templates/linkedin/Feed/FeedSection';
|
3 |
import FeedSection from '../../../../../dashboard/templates/linkedin/Feed/FeedSection';
|
| 4 |
import AboutGroup from '../../../../../group/view/templates/linkedin/components/AboutGroup';
|
- |
|
| 5 |
import GroupInfo from '../../../../../group/view/templates/linkedin/components/GroupInfo'
|
4 |
import GroupInfo from '../../../../../group/view/templates/linkedin/components/GroupInfo'
|
| 6 |
import { setTimelineUrl } from '../../../../../redux/feed/feed.actions';
|
5 |
import { setTimelineUrl } from '../../../../../redux/feed/feed.actions';
|
| 7 |
import { axios } from '../../../../../utils';
|
6 |
import { axios } from '../../../../../utils';
|
| Línea 8... |
Línea -... |
| 8 |
|
- |
|
| 9 |
|
- |
|
| 10 |
|
7 |
|
| Línea 11... |
Línea 8... |
| 11 |
const View = ({ backendVars }) => {
|
8 |
const View = ({ backendVars }) => {
|
| 12 |
|
9 |
|
| 13 |
const [authorizedLinks, setAuthorizedLinks] = useState(null);
|
10 |
const [authorizedLinks, setAuthorizedLinks] = useState(null);
|
| Línea 14... |
Línea 11... |
| 14 |
const [followers, setFollowers] = useState(totalFollowers);
|
11 |
const [followers, setFollowers] = useState(backendVars.totalFollowers);
|
| 15 |
const [isFollower, setIsFollower] = useState(false);
|
12 |
const [isFollower, setIsFollower] = useState(false);
|
| 16 |
|
13 |
|
| Línea 49... |
Línea 46... |
| 49 |
type='company'
|
46 |
type='company'
|
| 50 |
/>
|
47 |
/>
|
| 51 |
</div>
|
48 |
</div>
|
| 52 |
<div className="d-flex flex-column" style={{ gap: '.5rem' }}>
|
49 |
<div className="d-flex flex-column" style={{ gap: '.5rem' }}>
|
| 53 |
{isFollower
|
50 |
{isFollower
|
| 54 |
? <AboutGroup {...backendVars} />
|
51 |
? <h1>Información</h1>
|
| 55 |
: <FeedSection
|
52 |
: <FeedSection
|
| 56 |
routeTimeline={backendVars.timeline}
|
53 |
routeTimeline={backendVars.timeline}
|
| 57 |
backendVars={{
|
54 |
backendVars={{
|
| 58 |
...backendVars,
|
55 |
...backendVars,
|
| 59 |
image: `/storage/type/company/code/${backendVars.groupId}/${backendVars.image ? `filename/${backendVars.image}` : ""}`
|
56 |
image: `/storage/type/company/code/${backendVars.groupId}/${backendVars.image ? `filename/${backendVars.image}` : ""}`
|