From 5d34a34387e205c97b92e546cc5832b6a14f1cd0 Mon Sep 17 00:00:00 2001 From: Matt Gardner Date: Thu, 25 May 2023 12:27:45 -0400 Subject: [PATCH] changelog: Internal, In-Person Proofing, Use Rails-like i18n wrapper instead (#9165) --- app/javascript/packages/address-search/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/javascript/packages/address-search/index.tsx b/app/javascript/packages/address-search/index.tsx index 63bc2527b11..960f02d8613 100644 --- a/app/javascript/packages/address-search/index.tsx +++ b/app/javascript/packages/address-search/index.tsx @@ -1,6 +1,6 @@ import { TextInput } from '@18f/identity-components'; import { useState, useRef, useEffect, useCallback } from 'react'; -import { useI18n } from '@18f/identity-react-i18n'; +import { t } from '@18f/identity-i18n'; import { request } from '@18f/identity-request'; import ValidatedField from '@18f/identity-validated-field/validated-field'; import SpinnerButton, { SpinnerButtonRefHandle } from '@18f/identity-spinner-button/spinner-button'; @@ -104,7 +104,6 @@ function useUspsLocations() { // raw text input that is set when user clicks search const [addressQuery, setAddressQuery] = useState(''); const validatedFieldRef = useRef(null); - const { t } = useI18n(); const handleAddressSearch = useCallback((event, unvalidatedAddressInput) => { event.preventDefault(); validatedFieldRef.current?.setCustomValidity(''); @@ -179,7 +178,6 @@ function AddressSearch({ onError = () => undefined, disabled = false, }: AddressSearchProps) { - const { t } = useI18n(); const spinnerButtonRef = useRef(null); const [textInput, setTextInput] = useState(''); const {