Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { useState } from 'react';
import { Alert, PageHeading } from '@18f/identity-components';
import AddressSearchInput, { InPersonLocations } from '@18f/identity-address-search';
import type { LocationQuery, FormattedLocation } from '@18f/identity-address-search/types';
import { useI18n } from '@18f/identity-react-i18n';
import InPersonLocations from './in-person-locations';
import AddressInput from './address-input';
import type { LocationQuery, FormattedLocation } from '../types';

function AddressSearch({
registerField,
Expand All @@ -29,7 +30,7 @@ function AddressSearch({
)}
<PageHeading>{t('in_person_proofing.headings.po_search.location')}</PageHeading>
<p>{t('in_person_proofing.body.location.po_search.po_search_about')}</p>
<AddressSearchInput
<AddressInput
registerField={registerField}
onFoundAddress={setFoundAddress}
onFoundLocations={(locations) => {
Expand Down
5 changes: 3 additions & 2 deletions app/javascript/packages/address-search/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { snakeCase, formatLocations, transformKeys } from './utils';
import InPersonLocations from './components/in-person-locations';
import AddressInput from './components/address-input';
import AddressSearch from './components/address-search';

export { snakeCase, formatLocations, transformKeys, InPersonLocations };
export { snakeCase, formatLocations, transformKeys, InPersonLocations, AddressInput };

export default AddressInput;
export default AddressSearch;
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { useState, useEffect, useCallback, useRef, useContext } from 'react';
import { request } from '@18f/identity-request';
import { forceRedirect } from '@18f/identity-url';
import { transformKeys, snakeCase } from '@18f/identity-address-search';
import AddressSearch, { transformKeys, snakeCase } from '@18f/identity-address-search';
import type { FormattedLocation } from '@18f/identity-address-search/types';
import BackButton from './back-button';
import AnalyticsContext from '../context/analytics';
import { InPersonContext } from '../context';
import UploadContext from '../context/upload';
import AddressSearch from './address-search';

export const LOCATIONS_URL = new URL(
'/verify/in_person/usps_locations',
Expand Down