Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoMolinari95 committed Dec 24, 2024
1 parent d9f0a5c commit 50f94fa
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
VStack
} from "@pagopa/io-app-design-system";
import React, { useCallback, useMemo } from "react";
import { useFocusEffect } from "@react-navigation/native";
import { Route, useFocusEffect, useRoute } from "@react-navigation/native";
import I18n from "../../../../i18n";
import { useIOSelector } from "../../../../store/hooks";
import { cieFlowForDevServerEnabled } from "../../../cieLogin/utils";
Expand All @@ -17,7 +17,6 @@ import {
import { itwDisabledIdentificationMethodsSelector } from "../../../../store/reducers/backendStatus/remoteConfig";
import { IOScrollViewWithLargeHeader } from "../../../../components/ui/IOScrollViewWithLargeHeader";
import { isCIEAuthenticationSupportedSelector } from "../../machine/eid/selectors";
import { Route, useRoute } from "@react-navigation/native";
import { ITW_ROUTES } from "../../navigation/routes";

export type ItwIdentificationModeSelectionScreenNavigationParams =
Expand Down
4 changes: 3 additions & 1 deletion ts/features/itwallet/machine/eid/__tests__/machine.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ describe("itwEidIssuanceMachine", () => {
});

it("Should obtain an eID (SPID), reissuing mode", async () => {
//The wallet instance and attestation already exist
// The wallet instance and attestation already exist
const initialContext = {
...InitialContext,
integrityKeyTag: T_INTEGRITY_KEY,
Expand All @@ -999,6 +999,7 @@ describe("itwEidIssuanceMachine", () => {
const actor = createActor(mockedMachine);
actor.start();

// eslint-disable-next-line functional/immutable-data
actor.getSnapshot().context = initialContext;

await waitFor(() => expect(onInit).toHaveBeenCalledTimes(1));
Expand Down Expand Up @@ -1091,6 +1092,7 @@ describe("itwEidIssuanceMachine", () => {

// EID obtained

// eslint-disable-next-line sonarjs/no-identical-functions
await waitFor(() =>
expect(actor.getSnapshot().value).toStrictEqual({
Issuance: "DisplayingPreview"
Expand Down
2 changes: 1 addition & 1 deletion ts/features/itwallet/navigation/ItwStackNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ import ItwCieIdLoginScreen from "../identification/screens/cieId/ItwCieIdLoginSc
import { ItwPresentationCredentialFiscalCodeModal } from "../presentation/screens/ItwPresentationCredentialFiscalCodeModal";
import { ItwCredentialTrustmarkScreen } from "../trustmark/screens/ItwCredentialTrustmarkScreen";
import { ItwAlreadyActiveScreen } from "../discovery/screens/ItwAlreadyActiveScreen";
import { ItwPresentationEidVerificationExpiredScreen } from "../presentation/screens/ItwPresentationEidVerificationExpiredScreen";
import { ItwParamsList } from "./ItwParamsList";
import { ITW_ROUTES } from "./routes";
import { ItwPresentationEidVerificationExpiredScreen } from "../presentation/screens/ItwPresentationEidVerificationExpiredScreen";

const Stack = createStackNavigator<ItwParamsList>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const ItwCredentialOnboardingSection = () => {
});
}
},
[machineRef]
[machineRef, isWalletValid, navigation]
);

return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { useMemo } from "react";
import { BodyProps } from "@pagopa/io-app-design-system";
import { OperationResultScreenContent } from "../../../../components/screens/OperationResultScreenContent";
import I18n from "../../../../i18n";
import { useIONavigation } from "../../../../navigation/params/AppParamsList";
import { useHeaderSecondLevel } from "../../../../hooks/useHeaderSecondLevel";
import { BodyProps } from "@pagopa/io-app-design-system";
import { ITW_ROUTES } from "../../navigation/routes";

export const ItwPresentationEidVerificationExpiredScreen = () => {
Expand Down

0 comments on commit 50f94fa

Please sign in to comment.