Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2368 Rev 2369
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
-
 
2
import { useSelector } from 'react-redux'
2
import { Container, Grid } from '@mui/material'
3
import { Container, Grid } from '@mui/material'
3
import parse from 'html-react-parser'
4
import parse from 'html-react-parser'
Línea 4... Línea 5...
4
 
5
 
5
import Widget from '@app/components/UI/Widget'
6
import Widget from '@app/components/UI/Widget'
-
 
7
import SurveyForm from '@app/components/survey-form/SurveyForm'
Línea 6... Línea 8...
6
import SurveyForm from '@app/components/survey-form/SurveyForm'
8
import AuthNavbar from '@app/components/UI/auth-navbar'
-
 
9
 
7
 
10
function ShorterPostPage() {
8
function ShorterPostPage() {
11
  const { isAuth } = useSelector((state) => state.auth)
9
  const post = {
12
  const post = {
10
    feed_unique: '664e1becdd052',
13
    feed_unique: '664e1becdd052',
11
    feed_uuid: 'cb789433-8299-4a93-ab42-d0628a224187',
14
    feed_uuid: 'cb789433-8299-4a93-ab42-d0628a224187',
Línea 46... Línea 49...
46
    comment_add_url: '/feed/comment/cb789433-8299-4a93-ab42-d0628a224187',
49
    comment_add_url: '/feed/comment/cb789433-8299-4a93-ab42-d0628a224187',
47
    comments: []
50
    comments: []
48
  }
51
  }
Línea 49... Línea 52...
49
 
52
 
-
 
53
  return (
-
 
54
    <>
50
  return (
55
      {!isAuth ? <AuthNavbar /> : null}
51
    <Container>
56
      <Container>
52
      <Grid
57
        <Grid
53
        container
58
          container
54
        sx={{
59
          sx={{
55
          display: 'flex',
60
            display: 'flex',
56
          justifyContent: 'center',
61
            justifyContent: 'center',
57
          alignItems: 'center'
62
            alignItems: 'center'
58
        }}
63
          }}
59
      >
64
        >
60
        <Grid item xs={12} md={8}>
65
          <Grid item xs={12} md={8}>
61
          <Widget>
66
            <Widget>
62
            <Widget.Header
67
              <Widget.Header
63
              avatar={post.owner_image}
68
                avatar={post.owner_image}
64
              title={post.owner_name}
69
                title={post.owner_name}
65
              subheader={post.owner_time_elapse}
70
                subheader={post.owner_time_elapse}
Línea 66... Línea 71...
66
            />
71
              />
67
 
72
 
68
            <Widget.Body>
73
              <Widget.Body>
69
              <FeedContent feed={post} />
74
                <FeedContent feed={post} />
-
 
75
              </Widget.Body>
70
            </Widget.Body>
76
            </Widget>
71
          </Widget>
77
          </Grid>
72
        </Grid>
78
        </Grid>
73
      </Grid>
79
      </Container>
74
    </Container>
80
    </>
Línea 75... Línea 81...
75
  )
81
  )
76
}
82
}