Skip to content

Commit a864f1f

Browse files
authored
Merge pull request #594 from topcoder-platform/TCA-1179_re-enable-circle-ci-linting
TCA-1179 - uncomment linting in circle ci -> dev
2 parents d56a8de + 4dcbdfa commit a864f1f

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

.circleci/config.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,13 @@ deploy_steps: &deploy_steps
129129
./master_deploy.sh -d CFRONT -e $DEPLOY_ENV -c $ENABLE_CACHE
130130
131131
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
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

src-ts/tools/learn/learn-lib/hiring-manager-view/HiringManagerView.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
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+
5355
export 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)

0 commit comments

Comments
 (0)