Skip to content

Commit 64e6363

Browse files
committed
Fix PR comments and fix lint errors
1 parent d50324d commit 64e6363

File tree

14 files changed

+28
-29
lines changed

14 files changed

+28
-29
lines changed

src-ts/lib/form/form-functions/form.functions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export async function onSubmitAsync<T>(
7272
): Promise<void> {
7373

7474
event.preventDefault()
75-
event.stopPropagation();
75+
event.stopPropagation()
7676

7777
const { groups, shortName, successMessage }: FormDefinition = formDef
7878
const inputs: Array<FormInputModel> = getFormInputFields(groups || [])

src-ts/lib/form/form-input.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export interface FormInputModel {
2828
dirty?: boolean
2929
disabled?: boolean
3030
error?: string
31-
pristine?: boolean
3231
readonly events?: ReadonlyArray<InputEvent>
3332
readonly fileConfig?: {
3433
readonly acceptFileType?: string
@@ -44,6 +43,7 @@ export interface FormInputModel {
4443
readonly notTabbable?: boolean
4544
options?: ReadonlyArray<FormRadioButtonOption>
4645
readonly placeholder?: string
46+
pristine?: boolean
4747
readonly spellCheck?: boolean
4848
readonly title?: string
4949
touched?: boolean
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
@import '../styles/includes';
1+
@import '../../styles/includes';
22

33
.iconWrapper {
4-
height: 48px;
5-
width: 48px;
4+
@include icon-mxx;
5+
66
margin: 0 $space-lg $space-lg $space-lg;
77
background: $tc-grad12;
8-
border-radius: 24px;
8+
border-radius: $space-xxl;
99
display: flex;
1010
align-items: center;
1111
justify-content: center;
@@ -15,4 +15,3 @@
1515
color: $tc-white;
1616
}
1717
}
18-
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as IconWrapper } from './IconWrapper'

src-ts/lib/svgs/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ export {
3737
GitlabIcon,
3838
GithubIcon
3939
}
40+
export * from './icon-wrapper'

src-ts/tools/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ export {
2828
WorkTypeCategoryUnknownIcon,
2929
WorkTypeConfigs,
3030
BugHuntIntakeForm,
31+
bugHuntRoute
3132
} from './work'

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
@@ -29,7 +29,7 @@ import {
2929
} from '../../../work-lib'
3030
import { WorkServicePrice } from '../../../work-service-price'
3131
import { WorkTypeBanner } from '../../../work-type-banner'
32-
import { dashboardRoute } from '../../../work.routes'
32+
import { dashboardRoute, selfServiceStartRoute } from '../../../work.routes'
3333
import IntakeFormsBreadcrumb from '../intake-forms-breadcrumb/IntakeFormsBreadcrumb'
3434

3535
import { BugHuntFormConfig } from './bug-hunt.form.config'
@@ -52,7 +52,7 @@ const BugHuntIntakeForm: React.FC = () => {
5252
BugHuntFormConfig.buttons.primaryGroup[0].hidden = !isLoggedIn
5353
BugHuntFormConfig.buttons.primaryGroup[1].onClick = () => { setAction('submit') }
5454
if (BugHuntFormConfig.buttons.secondaryGroup) {
55-
BugHuntFormConfig.buttons.secondaryGroup[0].onClick = () => { navigate('/self-service/wizard') }
55+
BugHuntFormConfig.buttons.secondaryGroup[0].onClick = () => { navigate(selfServiceStartRoute) }
5656
}
5757

5858
const [challenge, setChallenge]: [Challenge | undefined, Dispatch<SetStateAction<Challenge | undefined>>] = useState()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ export const BugHuntFormConfig: FormDefinition = {
4141
{
4242
hideInlineErrors: true,
4343
label: 'Project title',
44-
pristine: true,
4544
name: ChallengeMetadataName.projectTitle,
4645
placeholder: 'Enter a descriptive title',
46+
pristine: true,
4747
type: 'text',
4848
validators: [
4949
{

src-ts/tools/work/work-service-price/WorkServicePrice.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { FC } from 'react'
22

3-
import { IconOutline, textFormatMoneyLocaleString, Tooltip } from '../../../lib'
4-
import IconWrapper from '../../../lib/icon-wrapper'
3+
import { IconOutline, IconWrapper, textFormatMoneyLocaleString, Tooltip } from '../../../lib'
54

65
import styles from './WorkServicePrice.module.scss'
76

0 commit comments

Comments
 (0)