Continue to account settings
@@ -43,21 +37,19 @@ export const WithCardAppLayout = () => {Hello, world!
@@ -17,7 +17,7 @@ it('renders the app with children', async () => { ); await waitFor(() => { - navigate(SETTINGS_PATH); + router.navigate(SETTINGS_PATH); }); expect(screen.getByTestId('app')).toBeInTheDocument(); diff --git a/packages/fxa-settings/src/components/Settings/SignoutSync/index.tsx b/packages/fxa-settings/src/components/Settings/SignoutSync/index.tsx index 855a7c6971d..79c2b90570b 100644 --- a/packages/fxa-settings/src/components/Settings/SignoutSync/index.tsx +++ b/packages/fxa-settings/src/components/Settings/SignoutSync/index.tsx @@ -2,14 +2,13 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -import { RouteComponentProps } from '@reach/router'; import { FtlMsg } from 'fxa-react/lib/utils'; import CardHeader from '../../CardHeader'; import AppLayout from '../../AppLayout'; export const viewName = 'legal'; -const SignoutSync = (_: RouteComponentProps) => { +const SignoutSync = () => { // TODO: Add button to make this more automatic. We need the android signout fix // to be rolled out first though. diff --git a/packages/fxa-settings/src/components/Settings/SubRow/index.test.tsx b/packages/fxa-settings/src/components/Settings/SubRow/index.test.tsx index 740b4e3b084..cf166323f37 100644 --- a/packages/fxa-settings/src/components/Settings/SubRow/index.test.tsx +++ b/packages/fxa-settings/src/components/Settings/SubRow/index.test.tsx @@ -19,7 +19,7 @@ import { AppContext } from '../../../models'; import { mockAppContext } from '../../../models/mocks'; import { AuthUiErrors } from '../../../lib/auth-errors/auth-errors'; import { mockAuthClient } from './mock'; -import { LocationProvider } from '@reach/router'; +import { MemoryRouter } from 'react-router'; import GleanMetrics from '../../../lib/glean'; let mockHasJwt = true; @@ -332,11 +332,11 @@ describe('PasskeySubRow', () => { const renderPasskeySubRow = (passkey: Passkey = mockPasskey) => { return render( -