Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1047 Rev 1048
Línea 14... Línea 14...
14
// Redux actions
14
// Redux actions
15
import { openShareModal } from "../../../redux/share-modal/shareModal.actions";
15
import { openShareModal } from "../../../redux/share-modal/shareModal.actions";
16
import { addNotification } from "../../../redux/notification/notification.actions";
16
import { addNotification } from "../../../redux/notification/notification.actions";
17
import { deleteFeed } from "../../../redux/feed/feed.actions";
17
import { deleteFeed } from "../../../redux/feed/feed.actions";
Línea 18... Línea 18...
18
 
18
 
Línea 19... Línea 19...
19
const FeedTemplate = ({ feed, owner_shared, feed_likes }) => {
19
const FeedTemplate = ({ feed, owner_shared }) => {
20
 
20
 
21
  // Destructuring feed data
21
  // Destructuring feed data
22
  const {
22
  const {
Línea 40... Línea 40...
40
    shared_file_image,
40
    shared_file_image,
41
    shared_file_document,
41
    shared_file_document,
42
    feed_like_url,
42
    feed_like_url,
43
    feed_unlike_url,
43
    feed_unlike_url,
44
    feed_is_liked,
44
    feed_is_liked,
-
 
45
    feed_likes,
45
    feed_share_url,
46
    feed_share_url,
46
    feed_delete_url,
47
    feed_delete_url,
47
    comments,
48
    comments,
48
    comment_add_url,
49
    comment_add_url,
49
  } = feed;
50
  } = feed;
Línea 199... Línea 200...
199
        onClick={(event) => {
200
        onClick={(event) => {
200
          likeHandler(event, feed_unlike_url);
201
          likeHandler(event, feed_unlike_url);
201
        }}
202
        }}
202
      >
203
      >
203
        <i className="fas fa-heart"></i>
204
        <i className="fas fa-heart"></i>
204
        Ya no me gusta
-
 
205
        {likesState}
205
        {likesState}
206
      </a>
206
      </a>
207
    ) : (
207
    ) : (
208
      <a
208
      <a
209
        href={feed_like_url}
209
        href={feed_like_url}
Línea 213... Línea 213...
213
        onClick={(event) => {
213
        onClick={(event) => {
214
          likeHandler(event, feed_like_url);
214
          likeHandler(event, feed_like_url);
215
        }}
215
        }}
216
      >
216
      >
217
        <i className="far fa-heart"></i>
217
        <i className="far fa-heart"></i>
218
        Me gusta
-
 
219
        {likesState}
218
        {likesState}
220
      </a>
219
      </a>
221
    );
220
    );
Línea 222... Línea 221...
222
 
221