Rev 1814 | Rev 1849 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import React from 'react'import { useParams } from 'react-router-dom'import { Container, Grid } from '@mui/material'import useFetch from '@app/hooks/useFetch'import ProfileCard from '@app/components/profile/ProfileCard'import ExperiencesCard from '@app/components/profile/experiences/ExperiencesCard'import EducationsCard from '@app/components/profile/educations/EducationsCard'import '../../styles/profile/profile.scss'const View = () => {const { uuid } = useParams()const { data: profile } = useFetch(`/profile/my-profiles/edit/${uuid}`)/* const {user_experiences,user_educations,user_hobbies_and_interests,user_skills,user_aptitudes,user_languages,formatted_address} = profile */return (<Container as='main' sx={{ p: 0 }}><Grid container spacing={2}><Griditemxs={12}sx={{display: 'flex',flexDirection: 'column',gap: 1}}><ProfileCard{...profile}sizes={{image: profile.image_size_profile,cover: profile.image_size_cover}}uuid={profile.user_uuid}image={profile.image}cover={profile.cover}/><ExperiencesCardexperiences={profile.user_experiences}uuid={uuid}edit/><EducationsCardeducations={profile.user_educations}uuid={uuid}edit/></Grid></Grid></Container>)}export default View