Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1038 Rev 1039
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 }) => {
19
const FeedTemplate = (props) => {
20
 
20
 
21
  // Destructuring feed data
21
  // Destructuring feed data
22
  const {
22
  const {
Línea 46... Línea 46...
46
    feed_is_liked,
46
    feed_is_liked,
47
    feed_share_url,
47
    feed_share_url,
48
    feed_delete_url,
48
    feed_delete_url,
49
    comments,
49
    comments,
50
    comment_add_url,
50
    comment_add_url,
51
  } = feed;
51
  } = props.feed;
Línea 52... Línea 52...
52
 
52
 
53
  // react hook form
53
  // react hook form
Línea 54... Línea 54...
54
  const { register, handleSubmit, errors } = useForm();
54
  const { register, handleSubmit, errors } = useForm();
Línea 478... Línea 478...
478
      />
478
      />
479
    </React.Fragment>
479
    </React.Fragment>
480
  );
480
  );
481
};
481
};
Línea 482... Línea 482...
482
 
482
 
-
 
483
function areEqual(prevProps, nextProps) {
-
 
484
  console.log(prevProps)
483
function feedPropsAreEqual(prevFeed, nextFeed) {
485
  console.log(nextProps)
484
  return prevFeed.feed.owner_shared === nextFeed.feed.owner_shared;
486
  return prevProps.feed.owner_shared === nextProps.feed.owner_shared;
Línea 485... Línea 487...
485
}
487
}