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
129
129
./master_deploy.sh -d CFRONT -e $DEPLOY_ENV -c $ENABLE_CACHE
130
130
131
131
jobs :
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
139
139
140
140
# lint-prod:
141
141
# <<: *defaults
@@ -144,7 +144,7 @@ jobs:
144
144
# LOGICAL_ENV: "prod"
145
145
# APPNAME: "platform-ui-mvp"
146
146
# steps: *lint_steps
147
-
147
+
148
148
build-dev :
149
149
<< : *defaults
150
150
environment :
@@ -160,7 +160,7 @@ jobs:
160
160
LOGICAL_ENV : " prod"
161
161
APPNAME : " platform-ui-mvp"
162
162
steps : *build_steps
163
-
163
+
164
164
test-dev :
165
165
<< : *test_defaults
166
166
environment :
@@ -192,12 +192,12 @@ workflows:
192
192
version : 2
193
193
build :
194
194
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
201
201
202
202
# - lint-prod:
203
203
# context : org-global
@@ -224,7 +224,7 @@ workflows:
224
224
context : org-global
225
225
requires :
226
226
- build-dev
227
- filters :
227
+ filters :
228
228
branches :
229
229
only :
230
230
- dev
Original file line number Diff line number Diff line change 6
6
SetStateAction ,
7
7
useCallback ,
8
8
useLayoutEffect ,
9
+ useMemo ,
9
10
useRef ,
10
11
useState ,
11
12
} from 'react'
@@ -50,6 +51,7 @@ function renderBasicList(items: Array<string> = []): ReactNode {
50
51
</ ul >
51
52
)
52
53
}
54
+
53
55
export interface HiringManagerViewProps {
54
56
certification ?: TCACertification
55
57
completedAt ?: string
@@ -91,7 +93,9 @@ const HiringManagerView: FC<HiringManagerViewProps> = (props: HiringManagerViewP
91
93
)
92
94
const shareModal : TCAShareCertificateModalData = useTCAShareCertificateModal ( ssrCertUrl )
93
95
94
- const renderShareActions : boolean = props . isOwner && ! props . isModalView
96
+ const renderShareActions : boolean = useMemo ( ( ) => (
97
+ ! ! props . isOwner && ! props . isModalView
98
+ ) , [ props . isOwner , props . isModalView ] )
95
99
96
100
const getCertificateCanvas : ( ) => Promise < HTMLCanvasElement | void >
97
101
= useCertificateCanvas ( certificateElRef )
You can’t perform that action at this time.
0 commit comments