Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4537 Rev 4538
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 FeedList from '../../../../../dashboard/templates/linkedin/Feed/FeedList';
4
import GroupInfo from '../../../../../group/view/templates/linkedin/components/GroupInfo'
4
import GroupInfo from '../../../../../group/view/templates/linkedin/components/GroupInfo'
5
import { setTimelineUrl } from '../../../../../redux/feed/feed.actions';
5
import { setTimelineUrl } from '../../../../../redux/feed/feed.actions';
6
import { axios } from '../../../../../utils';
6
import { axios } from '../../../../../utils';
7
import AboutCompany from '../components/AboutCompany';
7
import AboutCompany from '../components/AboutCompany';
-
 
8
import CompanyFollowers from '../components/CompanyFollowers';
Línea 8... Línea 9...
8
 
9
 
Línea 9... Línea 10...
9
const View = ({ backendVars }) => {
10
const View = ({ backendVars }) => {
10
 
11
 
Línea 48... Línea 49...
48
                    />
49
                    />
49
                </div>
50
                </div>
50
                <div className="d-flex flex-column" style={{ gap: '.5rem' }}>
51
                <div className="d-flex flex-column" style={{ gap: '.5rem' }}>
51
                    {!isFollower
52
                    {!isFollower
52
                        ? <AboutCompany {...backendVars} />
53
                        ? <AboutCompany {...backendVars} />
53
                        : <FeedSection
54
                        : <FeedList
-
 
55
                            image={`/storage/type/company/code/${backendVars.companyId}/${backendVars.image ? `filename/${backendVars.image}` : ""}`}
54
                            routeTimeline={backendVars.timeline}
56
                            routeTimeline={backendVars.timeline}
55
                            backendVars={{
-
 
56
                                ...backendVars,
-
 
57
                                image: `/storage/type/company/code/${backendVars.companyId}/${backendVars.image ? `filename/${backendVars.image}` : ""}`
-
 
58
                            }}
-
 
59
                        />
57
                        />
60
                    }
58
                    }
61
                </div>
59
                </div>
62
                <div className="d-flex flex-column" style={{ gap: '.5rem' }}>
60
                <div className="d-flex flex-column" style={{ gap: '.5rem' }}>
-
 
61
                    <CompanyFollowers companyId={backendVars.companyId} />
63
                    <AboutCompany {...backendVars} />
62
                    <AboutCompany {...backendVars} />
64
                </div>
63
                </div>
65
            </div>
64
            </div>
66
        </main>
65
        </main>
67
    )
66
    )