Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2245 Rev 2377
Línea 4... Línea 4...
4
 
4
 
5
import withExternalShare from '../dashboard/linkedin/withExternalShare'
5
import withExternalShare from '../dashboard/linkedin/withExternalShare'
Línea 6... Línea 6...
6
import withReactions from '@app/hocs/withReaction'
6
import withReactions from '@app/hocs/withReaction'
7
 
-
 
8
import Button from '../UI/buttons/Buttons'
7
 
9
import WidgetWrapper from '../widgets/WidgetLayout'
8
import Button from '../UI/buttons/Buttons'
10
import Paraphrase from '../UI/Paraphrase'
9
import Paraphrase from '../UI/Paraphrase'
Línea 11... Línea 10...
11
import PostFile from './PostFile'
10
import PostFile from './PostFile'
12
import FeedReactions from '../dashboard/linkedin/feed/FeedReactions'
11
import FeedReactions from '../dashboard/linkedin/feed/FeedReactions'
-
 
12
 
Línea 13... Línea 13...
13
 
13
import CommentForm from '../dashboard/linkedin/comments/comment-form'
14
import CommentForm from '../dashboard/linkedin/comments/comment-form'
14
import CommentsList from '../dashboard/linkedin/comments/comment-list'
15
import CommentsList from '../dashboard/linkedin/comments/comment-list'
15
import Widget from '../UI/Widget'
16
 
16
 
Línea 47... Línea 47...
47
  const ExternalShareButton = withExternalShare(Button, share_external_url)
47
  const ExternalShareButton = withExternalShare(Button, share_external_url)
Línea 48... Línea 48...
48
 
48
 
Línea 49... Línea 49...
49
  const ReactionButton = withReactions(Button)
49
  const ReactionButton = withReactions(Button)
50
 
50
 
51
  return (
51
  return (
52
    <WidgetWrapper>
52
    <Widget>
-
 
53
      <Widget.Media
53
      <img
54
        src={image}
54
        src={image}
55
        alt={title}
55
        style={{
56
        styles={{
56
          width: '100%',
57
          width: '100%',
57
          maxHeight: '450px',
58
          maxHeight: '450px',
58
          objectFit: 'contain'
59
          objectFit: 'contain'
-
 
60
        }}
59
        }}
61
      />
60
      />
62
 
61
      <WidgetWrapper.Body>
63
      <Widget.Body>
62
        <h2>{title}</h2>
64
        <h2>{title}</h2>
63
        <Paraphrase>{description}</Paraphrase>
65
        <Paraphrase>{description}</Paraphrase>
Línea 64... Línea 66...
64
        <PostFile file={file} type={type} />
66
        <PostFile file={file} type={type} />
65
      </WidgetWrapper.Body>
67
      </Widget.Body>
Línea 66... Línea 68...
66
 
68
 
67
      <div className='d-flex justify-content-between align-items-center px-3'>
69
      <div className='d-flex justify-content-between align-items-center px-3'>
68
        <FeedReactions reactions={reactions} reactionsUrl={reactions_url} />
70
        <FeedReactions reactions={reactions} reactionsUrl={reactions_url} />
69
 
71
 
Línea 70... Línea 72...
70
        {!!total_share_external && (
72
        {!!total_share_external && (
71
          <span>{`${total_share_external} ${labels.sends?.toLowerCase()}`}</span>
73
          <span>{`${total_share_external} ${labels.sends?.toLowerCase()}`}</span>
72
        )}
74
        )}
73
      </div>
75
      </div>
74
 
76
 
75
      <WidgetWrapper.Actions>
77
      <Widget.Actions>
Línea 93... Línea 95...
93
          setValue={updateTotalShare}
95
          setValue={updateTotalShare}
94
        >
96
        >
95
          <SendOutlined style={{ color: 'gray' }} />
97
          <SendOutlined style={{ color: 'gray' }} />
96
          {labels.send}
98
          {labels.send}
97
        </ExternalShareButton>
99
        </ExternalShareButton>
98
      </WidgetWrapper.Actions>
100
      </Widget.Actions>
Línea 99... Línea 101...
99
 
101
 
100
      {showComments && (
102
      {showComments && (
101
        <div className='px-3 pb-2'>
103
        <div className='px-3 pb-2'>
102
          <CommentForm onSubmit={addComment} />
104
          <CommentForm onSubmit={addComment} />
103
          <CommentsList comments={comments} />
105
          <CommentsList comments={comments} />
104
        </div>
106
        </div>
105
      )}
107
      )}
106
    </WidgetWrapper>
108
    </Widget>
107
  )
109
  )
Línea 108... Línea 110...
108
}
110
}