mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
memoize VerifiedAuthor
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import React from 'react';
|
||||||
import {useComment, useAuthorAddress} from '@plebbit/plebbit-react-hooks';
|
import {useComment, useAuthorAddress} from '@plebbit/plebbit-react-hooks';
|
||||||
|
|
||||||
function VerifiedAuthor({ commentCid, children }) {
|
function VerifiedAuthor({ commentCid, children }) {
|
||||||
@@ -7,4 +8,4 @@ function VerifiedAuthor({ commentCid, children }) {
|
|||||||
return children({ authorAddress, shortAuthorAddress });
|
return children({ authorAddress, shortAuthorAddress });
|
||||||
}
|
}
|
||||||
|
|
||||||
export default VerifiedAuthor;
|
export default React.memo(VerifiedAuthor);
|
||||||
Reference in New Issue
Block a user