File tree Expand file tree Collapse file tree 2 files changed +21
-17
lines changed
src-ts/tools/learn/learn-lib/hiring-manager-view Expand file tree Collapse file tree 2 files changed +21
-17
lines changed Original file line number Diff line number Diff line change @@ -129,13 +129,13 @@ deploy_steps: &deploy_steps
129129 ./master_deploy.sh -d CFRONT -e $DEPLOY_ENV -c $ENABLE_CACHE
130130
131131jobs :
132- # lint-dev:
133- # <<: *defaults
134- # environment:
135- # DEPLOY_ENV: "DEV"
136- # LOGICAL_ENV: "dev"
137- # APPNAME: "platform-ui-mvp"
138- # steps: *lint_steps
132+ lint-dev :
133+ << : *defaults
134+ environment :
135+ DEPLOY_ENV : " DEV"
136+ LOGICAL_ENV : " dev"
137+ APPNAME : " platform-ui-mvp"
138+ steps : *lint_steps
139139
140140 # lint-prod:
141141 # <<: *defaults
@@ -144,7 +144,7 @@ jobs:
144144 # LOGICAL_ENV: "prod"
145145 # APPNAME: "platform-ui-mvp"
146146 # steps: *lint_steps
147-
147+
148148 build-dev :
149149 << : *defaults
150150 environment :
@@ -160,7 +160,7 @@ jobs:
160160 LOGICAL_ENV : " prod"
161161 APPNAME : " platform-ui-mvp"
162162 steps : *build_steps
163-
163+
164164 test-dev :
165165 << : *test_defaults
166166 environment :
@@ -192,12 +192,12 @@ workflows:
192192 version : 2
193193 build :
194194 jobs :
195- # - lint-dev:
196- # context : org-global
197- # filters:
198- # branches:
199- # ignore:
200- # - master
195+ - lint-dev :
196+ context : org-global
197+ filters :
198+ branches :
199+ ignore :
200+ - master
201201
202202 # - lint-prod:
203203 # context : org-global
@@ -224,7 +224,7 @@ workflows:
224224 context : org-global
225225 requires :
226226 - build-dev
227- filters :
227+ filters :
228228 branches :
229229 only :
230230 - dev
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