Skip to content

Commit

Permalink
Refactor & optimise Editor component
Browse files Browse the repository at this point in the history
Removed usage of legacy `componentWillReceiveProps`.
  • Loading branch information
tnajdek committed Jun 24, 2021
1 parent a3ad4a7 commit 2d6cde5
Show file tree
Hide file tree
Showing 2 changed files with 226 additions and 216 deletions.
2 changes: 0 additions & 2 deletions src/js/components/container.jsx
Expand Up @@ -106,7 +106,6 @@ const BibWebContainer = props => {
if(style.isSentenceCaseStyle) {
bib.current.addItem(processSentenceCaseAPAItems([item])[0]);
} else {
console.log({ item });
bib.current.addItem(item);
}

Expand Down Expand Up @@ -852,7 +851,6 @@ const BibWebContainer = props => {
}, [addItem, style.xml, handleError, messages, style.styleHasBibliography, updateBibliography]);

const handleUndoDelete = useCallback(() => {
console.log(lastDeletedItem.current);
if(lastDeletedItem.current) {
addItem(lastDeletedItem.current);
updateBibliography();
Expand Down

0 comments on commit 2d6cde5

Please sign in to comment.