Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2190 Rev 2191
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
2
import { useLocation } from 'react-router-dom'
2
import { useParams } from 'react-router-dom'
3
import { Container, Grid } from '@mui/material'
3
import { Container, Grid } from '@mui/material'
Línea 4... Línea 4...
4
 
4
 
Línea 5... Línea 5...
5
import usePosts from '@app/hooks/usePosts'
5
import usePosts from '@app/hooks/usePosts'
6
 
6
 
Línea 7... Línea 7...
7
import PostCard from '@app/components/post/PostCard'
7
import PostCard from '@app/components/post/PostCard'
8
import HomeNews from '@app/components/widgets/default/HomeNews'
8
import HomeNews from '@app/components/widgets/default/HomeNews'
9
 
9
 
10
const PostViewPage = () => {
10
const PostViewPage = () => {
11
  const { pathname } = useLocation()
11
  const { uuid } = useParams()
12
  const {
12
  const {
13
    post,
13
    post,
14
    addComment,
14
    addComment,
15
    updateTotalShare,
15
    updateTotalShare,
Línea 16... Línea 16...
16
    updateMyReaction,
16
    updateMyReaction,
17
    updateReactions
17
    updateReactions
18
  } = usePosts(pathname)
18
  } = usePosts(`/post/${uuid}`)
19
 
19