memoize VerifiedAuthor

This commit is contained in:
plebeius.eth
2023-09-09 11:02:23 +02:00
parent 059a89b79a
commit 037bf858c0
+2 -1
View File
@@ -1,3 +1,4 @@
import React from 'react';
import {useComment, useAuthorAddress} from '@plebbit/plebbit-react-hooks';
function VerifiedAuthor({ commentCid, children }) {
@@ -7,4 +8,4 @@ function VerifiedAuthor({ commentCid, children }) {
return children({ authorAddress, shortAuthorAddress });
}
export default VerifiedAuthor;
export default React.memo(VerifiedAuthor);