-
Notifications
You must be signed in to change notification settings - Fork 166
Remove Lint Exceptions: Prop Type Exceptions #10521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c40081f
523a1f3
632569b
f7a5889
30a756f
a49a6ea
8576281
a14e0e0
9cf2f10
4f92201
faf2bfe
015e03b
4c03d47
20c0596
28e7e98
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -39,7 +39,7 @@ const USPS_RESPONSE = [ | |||||
| const DEFAULT_PROPS = { | ||||||
| toPreviousStep() {}, | ||||||
| onChange() {}, | ||||||
| registerField() {}, | ||||||
| registerField: (_string) => undefined, | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we're going to list the unused argument, I'd think we should name it the same as it's named in the original type signature ( Personally, I don't think it matters much to list the arguments, which is why I left it out in my previous recommendations. identity-idp/app/javascript/packages/form-steps/form-steps.tsx Lines 33 to 34 in c386364
|
||||||
| }; | ||||||
|
|
||||||
| describe('InPersonLocationFullAddressEntryPostOfficeSearchStep', () => { | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -3,12 +3,23 @@ import { request } from '@18f/identity-request'; | |||
| import { forceRedirect } from '@18f/identity-url'; | ||||
| import AddressSearch, { transformKeys, snakeCase } from '@18f/identity-address-search'; | ||||
| import type { FormattedLocation } from '@18f/identity-address-search/types'; | ||||
| import type { RegisterFieldCallback } from '@18f/identity-form-steps'; | ||||
| import BackButton from './back-button'; | ||||
| import AnalyticsContext from '../context/analytics'; | ||||
| import { InPersonContext } from '../context'; | ||||
| import UploadContext from '../context/upload'; | ||||
|
|
||||
| function InPersonLocationPostOfficeSearchStep({ onChange, toPreviousStep, registerField }) { | ||||
| interface InPersonLocationPostOfficeSearchStepProps { | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Elsewhere we extend an interface exposed by identity-idp/app/javascript/packages/document-capture/components/review-issues-step.tsx Line 39 in c386364
|
||||
| onChange: ({ selectedLocationAddress }: { selectedLocationAddress: string }) => void; | ||||
| toPreviousStep: () => void; | ||||
| registerField: RegisterFieldCallback; | ||||
| } | ||||
|
|
||||
| function InPersonLocationPostOfficeSearchStep({ | ||||
| onChange, | ||||
| toPreviousStep, | ||||
| registerField, | ||||
| }: InPersonLocationPostOfficeSearchStepProps) { | ||||
| const { inPersonURL, locationsURL, addressSearchURL } = useContext(InPersonContext); | ||||
| const [inProgress, setInProgress] = useState<boolean>(false); | ||||
| const [autoSubmit, setAutoSubmit] = useState<boolean>(false); | ||||
|
|
||||
Uh oh!
There was an error while loading. Please reload this page.