Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1039 Rev 1040
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 = (props) => {
19
const FeedTemplate = ({ feed, owner_shared }) => {
20
 
20
 
21
  // Destructuring feed data
21
  // Destructuring feed data
22
  const {
-
 
23
    feed_unique,
22
  const {
24
    feed_id_encrypted,
23
    feed_unique,
25
    owner_name,
24
    owner_name,
26
    owner_url,
25
    owner_url,
27
    owner_image,
-
 
28
    owner_comments,
26
    owner_image,
29
    owner_shared,
27
    owner_comments,
30
    owner_time_elapse,
28
    owner_time_elapse,
31
    owner_description,
29
    owner_description,
32
    owner_file_image,
30
    owner_file_image,
Línea 46... Línea 44...
46
    feed_is_liked,
44
    feed_is_liked,
47
    feed_share_url,
45
    feed_share_url,
48
    feed_delete_url,
46
    feed_delete_url,
49
    comments,
47
    comments,
50
    comment_add_url,
48
    comment_add_url,
51
  } = props.feed;
49
  } = feed;
Línea 52... Línea 50...
52
 
50
 
53
  // react hook form
51
  // react hook form
Línea 54... Línea 52...
54
  const { register, handleSubmit, errors } = useForm();
52
  const { register, handleSubmit, errors } = useForm();
Línea 478... Línea 476...
478
      />
476
      />
479
    </React.Fragment>
477
    </React.Fragment>
480
  );
478
  );
481
};
479
};
Línea 482... Línea -...
482
 
-
 
483
function areEqual(prevProps, nextProps) {
-
 
484
  console.log(prevProps)
-
 
485
  console.log(nextProps)
-
 
486
  return prevProps.feed.owner_shared === nextProps.feed.owner_shared;
-
 
487
}
-
 
488
 
480