Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 740 Rev 769
Línea 91... Línea 91...
91
  const ExternalShareButton = withExternalShare(
91
  const ExternalShareButton = withExternalShare(
92
    InputOption,
92
    InputOption,
93
    post.share_external_url
93
    post.share_external_url
94
  )
94
  )
Línea 95... Línea 95...
95
 
95
 
96
  const ReactionButton = withReactions(InputOption, {
-
 
97
    saveUrl: post.save_reaction_url,
-
 
98
    deleteUrl: post.delete_reaction_url,
-
 
99
    currentReaction: myReaction,
-
 
100
    onSelect: (reactions) => setReactions(reactions)
-
 
Línea 101... Línea 96...
101
  })
96
  const ReactionButton = withReactions(InputOption)
102
 
97
 
103
  const addComment = (comment) => {
98
  const addComment = (comment) => {
Línea 190... Línea 185...
190
  return (
185
  return (
191
    <Container as='main' className='px-0'>
186
    <Container as='main' className='px-0'>
192
      <Grid container spacing={2}>
187
      <Grid container spacing={2}>
193
        <Grid item xs={12} md={8}>
188
        <Grid item xs={12} md={8}>
194
          <StyledContainer>
189
          <StyledContainer>
-
 
190
            <img
195
            <img src={post.image} />
191
              src={post.image}
-
 
192
              style={{
-
 
193
                width: '100%',
-
 
194
                maxHeight: '450px',
196
            <StyledContainer.Header title={post.title} />
195
                objectFit: 'contain'
-
 
196
              }}
197
 
197
            />
198
            <StyledContainer.Body>
198
            <StyledContainer.Body>
-
 
199
              <h2>{post.title}</h2>
199
              <Paraphrase>{post.description}</Paraphrase>
200
              <Paraphrase>{post.description}</Paraphrase>
200
              {post.file && (
201
              {post.file && (
201
                <a href={post.file} download>
202
                <a href={post.file} download>
202
                  <img src='/images/extension/pdf.png' alt='pdf' />
203
                  <img src='/images/extension/pdf.png' alt='pdf' />
203
                </a>
204
                </a>
Línea 217... Línea 218...
217
                <span>{`${totalSends} ${labels.sends?.toLowerCase()}`}</span>
218
                <span>{`${totalSends} ${labels.sends?.toLowerCase()}`}</span>
218
              )}
219
              )}
219
            </div>
220
            </div>
Línea 220... Línea 221...
220
 
221
 
221
            <StyledContainer.Actions>
222
            <StyledContainer.Actions>
-
 
223
              <ReactionButton
-
 
224
                currentReaction={myReaction}
-
 
225
                saveUrl={post.save_reaction_url}
-
 
226
                deleteUrl={post.delete_reaction_url}
-
 
227
                onReaction={({ reactions, currentReaction }) => {
-
 
228
                  setReactions(reactions)
-
 
229
                  setMyReaction(currentReaction)
-
 
230
                }}
222
              <ReactionButton />
231
              />
223
              <InputOption
232
              <InputOption
224
                icon={ChatOutlinedIcon}
233
                icon={ChatOutlinedIcon}
225
                icGridor='gray'
234
                icGridor='gray'
226
                label={labels.comment}
235
                label={labels.comment}