Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 777 Rev 1507
Línea 18... Línea 18...
18
 
18
 
19
import HomeNews from '../../components/widgets/default/HomeNews'
19
import HomeNews from '../../components/widgets/default/HomeNews'
20
import InputOption from '../../components/dashboard/linkedin/action-button/InputOption'
20
import InputOption from '../../components/dashboard/linkedin/action-button/InputOption'
21
import withExternalShare from '../../components/dashboard/linkedin/withExternalShare'
21
import withExternalShare from '../../components/dashboard/linkedin/withExternalShare'
22
import Paraphrase from '../../components/UI/Paraphrase'
22
import Paraphrase from '../../components/UI/Paraphrase'
23
import StyledContainer from '../../components/widgets/WidgetLayout'
23
import WidgetWrapper from '../../components/widgets/WidgetLayout'
24
import withReactions from '../../hocs/withReaction'
24
import withReactions from '../../hocs/withReaction'
Línea 25... Línea 25...
25
import MobileShare from '../../components/dashboard/linkedin/mobile-share/MobileShare'
25
import MobileShare from '../../components/dashboard/linkedin/mobile-share/MobileShare'
26
 
26
 
Línea 184... Línea 184...
184
 
184
 
185
  return (
185
  return (
186
    <Container as='main' className='px-0'>
186
    <Container as='main' className='px-0'>
187
      <Grid container spacing={2}>
187
      <Grid container spacing={2}>
188
        <Grid item xs={12} md={8}>
188
        <Grid item xs={12} md={8}>
189
          <StyledContainer>
189
          <WidgetWrapper>
190
            <img
190
            <img
191
              src={post.image}
191
              src={post.image}
192
              style={{
192
              style={{
193
                width: '100%',
193
                width: '100%',
194
                maxHeight: '450px',
194
                maxHeight: '450px',
195
                objectFit: 'contain'
195
                objectFit: 'contain'
196
              }}
196
              }}
197
            />
197
            />
198
            <StyledContainer.Body>
198
            <WidgetWrapper.Body>
199
              <h2>{post.title}</h2>
199
              <h2>{post.title}</h2>
200
              <Paraphrase>{post.description}</Paraphrase>
200
              <Paraphrase>{post.description}</Paraphrase>
201
              {post.file && (
201
              {post.file && (
202
                <a href={post.file} download>
202
                <a href={post.file} download>
203
                  <img src='/images/extension/pdf.png' alt='pdf' />
203
                  <img src='/images/extension/pdf.png' alt='pdf' />
204
                </a>
204
                </a>
205
              )}
205
              )}
Línea 206... Línea 206...
206
            </StyledContainer.Body>
206
            </WidgetWrapper.Body>
207
 
207
 
208
            <div className='d-flex justify-content-between align-items-center px-3'>
208
            <div className='d-flex justify-content-between align-items-center px-3'>
209
              <div className='reactions-counter'>
209
              <div className='reactions-counter'>
Línea 217... Línea 217...
217
              {!!totalSends && (
217
              {!!totalSends && (
218
                <span>{`${totalSends} ${labels.sends?.toLowerCase()}`}</span>
218
                <span>{`${totalSends} ${labels.sends?.toLowerCase()}`}</span>
219
              )}
219
              )}
220
            </div>
220
            </div>
Línea 221... Línea 221...
221
 
221
 
222
            <StyledContainer.Actions>
222
            <WidgetWrapper.Actions>
223
              <ReactionButton
223
              <ReactionButton
224
                currentReaction={myReaction}
224
                currentReaction={myReaction}
225
                saveUrl={post.save_reaction_url}
225
                saveUrl={post.save_reaction_url}
226
                deleteUrl={post.delete_reaction_url}
226
                deleteUrl={post.delete_reaction_url}
Línea 254... Línea 254...
254
                >
254
                >
255
                  <SendOutlinedIcon />
255
                  <SendOutlinedIcon />
256
                  {labels.send}
256
                  {labels.send}
257
                </MobileShare>
257
                </MobileShare>
258
              )}
258
              )}
259
            </StyledContainer.Actions>
259
            </WidgetWrapper.Actions>
Línea 260... Línea 260...
260
 
260
 
261
            {showComments && (
261
            {showComments && (
262
              <div className='px-3 pb-2'>
262
              <div className='px-3 pb-2'>
263
                <CommentForm onSubmit={addComment} />
263
                <CommentForm onSubmit={addComment} />
264
                <CommentsList comments={comments} onDelete={deleteComment} />
264
                <CommentsList comments={comments} onDelete={deleteComment} />
265
              </div>
265
              </div>
266
            )}
266
            )}
267
          </StyledContainer>
267
          </WidgetWrapper>
Línea 268... Línea 268...
268
        </Grid>
268
        </Grid>
269
 
269
 
270
        <Grid item xs={12} md={4}>
270
        <Grid item xs={12} md={4}>