Skip to content

Commit bb82007

Browse files
committed
Fix lint errors
1 parent ff7049f commit bb82007

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

src-ts/lib/loading-spinner/LoadingSpinner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const LoadingSpinner: FC<LoadingSpinnerProps> = ({ hide, className, type = 'Norm
2525
return <></>
2626
}
2727

28-
const isOverlay = type === 'Overlay'
28+
const isOverlay: boolean = type === 'Overlay'
2929
return (
3030
<div className={classNames(styles['loading-spinner'], styles.show, isOverlay ? styles.overlay : '', className)}>
3131
<PuffLoader color={'#2196f3'} loading={true} size={100} />

src-ts/tools/work/work-login-prompt/WorkLoginPrompt.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import {
88
routeContext,
99
RouteContextData,
1010
} from '../../../lib'
11-
12-
import { BackArrowIcon } from "../../../lib/svgs";
11+
import { BackArrowIcon } from '../../../lib/svgs'
1312

1413
import styles from './WorkLoginPrompt.module.scss'
1514

@@ -29,11 +28,11 @@ const WorkLoginPrompt: FC<WorkLoginPromptProps> = ({ previousPageUrl }: WorkLogi
2928
window.location.href = signUpUrl
3029
}
3130

32-
const onBack = () => {
31+
const onBack: () => void = () => {
3332
navigate(
3433
previousPageUrl
35-
);
36-
};
34+
)
35+
}
3736

3837
return (
3938
<>
@@ -61,10 +60,10 @@ const WorkLoginPrompt: FC<WorkLoginPromptProps> = ({ previousPageUrl }: WorkLogi
6160
</div>
6261
</div>
6362
<PageDivider />
64-
<div className={styles["footerContent"]}>
63+
<div className={styles['footerContent']}>
6564
<div>
6665
<Button
67-
size="md"
66+
size='md'
6867
icon={BackArrowIcon}
6968
buttonStyle='secondary'
7069
onClick={onBack}

src-ts/tools/work/work-self-service/intake-forms/bug-hunt/BugHuntIntakeForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ const BugHuntIntakeForm: React.FC = () => {
165165
navigate(`${dashboardRoute}/draft`)
166166
} else if (action === 'submit') {
167167
const nextUrl: string = `${WorkIntakeFormRoutes[WorkType.bugHunt]['review']}/${workId || challenge?.id}`
168-
navigate(nextUrl)
168+
navigate(nextUrl)
169169
}
170170
}
171171

@@ -185,7 +185,7 @@ const BugHuntIntakeForm: React.FC = () => {
185185

186186
return (
187187
<>
188-
<LoadingSpinner hide={!loading} type="Overlay" />
188+
<LoadingSpinner hide={!loading} type='Overlay' />
189189
<IntakeFormsBreadcrumb
190190
basicInfoRoute={WorkIntakeFormRoutes[WorkType.bugHunt]['basicInfo']}
191191
workType={workBugHuntConfig.type}

src-ts/tools/work/work-self-service/intake-forms/review/Review.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ const Review: FC = () => {
193193

194194
return (
195195
<div className={styles['review-container']}>
196-
<LoadingSpinner hide={!isLoading} type="Overlay" />
196+
<LoadingSpinner hide={!isLoading} type='Overlay' />
197197
{/* TODO: We need to not hard code the configs to that of BugHunt and instead
198198
use the challenge data to determine the WorkType */}
199199
<IntakeFormsBreadcrumb

src-ts/tools/work/work.routes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const workRoutes: Array<PlatformRoute> = [
9797
route: `bug-hunt/review/:workId`,
9898
},
9999
{
100-
element: <WorkLoginPrompt previousPageUrl="/self-service/work/new/bug-hunt/basic-info" />,
100+
element: <WorkLoginPrompt previousPageUrl='/self-service/work/new/bug-hunt/basic-info' />,
101101
route: `bug-hunt/login-prompt/:retUrl`,
102102
},
103103
// General

0 commit comments

Comments
 (0)