Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4498 | Rev 4522 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

/* eslint-disable react/prop-types */
import React from 'react'
import FeedSection from '../../../../../dashboard/templates/linkedin/Feed/FeedSection'
import AboutGroup from '../components/AboutGroup'
import GroupInfo from '../components/GroupInfo'

const View = ({ backendVars }) => {
    return (
        <main className="w-100">
            <div className="container p-0 app__body layout__content">
                <div className="d-flex flex-column">
                    <GroupInfo
                        cover={backendVars.cover}
                        image={backendVars.image}
                        name={backendVars.name}
                        overview={backendVars.overview}
                        groupId={backendVars.groupId}
                        totalMembers={backendVars.totalMembers}
                        groupType={backendVars.groupType}
                        accessibility={backendVars.accessibility}
                    />
                </div>
                <div className="d-flex flex-column" style={{ gap: '.5rem' }}>
                    <FeedSection
                        routeTimeline={backendVars.routeTimeline}
                        backendVars={{
                            ...backendVars,
                            image: `/storage/type/group/code/${backendVars.groupId}/${backendVars.image ? `filename/${backendVars.image}` : ""}`
                        }}
                    />
                </div>
                <div className="d-flex flex-column" style={{ gap: '.5rem' }}>
                    <AboutGroup {...backendVars} />
                </div>
            </div>
        </main>
    )
}

export default View