File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src-ts/tools/learn/learn-lib/hiring-manager-view Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 66 SetStateAction ,
77 useCallback ,
88 useLayoutEffect ,
9+ useMemo ,
910 useRef ,
1011 useState ,
1112} from 'react'
@@ -50,6 +51,7 @@ function renderBasicList(items: Array<string> = []): ReactNode {
5051 </ ul >
5152 )
5253}
54+
5355export interface HiringManagerViewProps {
5456 certification ?: TCACertification
5557 completedAt ?: string
@@ -91,7 +93,9 @@ const HiringManagerView: FC<HiringManagerViewProps> = (props: HiringManagerViewP
9193 )
9294 const shareModal : TCAShareCertificateModalData = useTCAShareCertificateModal ( ssrCertUrl )
9395
94- const renderShareActions : boolean = props . isOwner && ! props . isModalView
96+ const renderShareActions : boolean = useMemo ( ( ) => (
97+ ! ! props . isOwner && ! props . isModalView
98+ ) , [ props . isOwner , props . isModalView ] )
9599
96100 const getCertificateCanvas : ( ) => Promise < HTMLCanvasElement | void >
97101 = useCertificateCanvas ( certificateElRef )
You can’t perform that action at this time.
0 commit comments