Skip to content

Commit

Permalink
chore: [IOBP-366] FixIOToast import in TransactionSummaryScreen (p…
Browse files Browse the repository at this point in the history
…agopa#5151)

## Short description
This PR fixes the wrong import of `IOToast` in
`TransactionSummaryScreen`.

## List of changes proposed in this pull request
-
[ts/screens/wallet/payment/TransactionSummaryScreen.tsx](https://github.com/pagopa/io-app/compare/IOBP-366-utilizzo-toast-esportati-da-components?expand=1#diff-47963200ba53ae60a3a94216a88c5409031afb1579f67ffd44ba8a4b381909a5):
Changed the import from `io-app-design-system` to `components/Toast`.

## How to test
Try to abort an ongoing payment, check if the Toast confirming the
payment abort is displayed correctly
  • Loading branch information
mastro993 authored Oct 23, 2023
1 parent d23128b commit 1ef8a55
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions ts/screens/wallet/payment/TransactionSummaryScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
import { ButtonSolid, ContentWrapper } from "@pagopa/io-app-design-system";
import {
AmountInEuroCents,
PaymentNoticeNumberFromString,
RptId
} from "@pagopa/io-pagopa-commons/lib/pagopa";
import * as pot from "@pagopa/ts-commons/lib/pot";
import { constNull, pipe } from "fp-ts/lib/function";
import { RouteProp, useNavigation, useRoute } from "@react-navigation/native";
import * as O from "fp-ts/lib/Option";
import { constNull, pipe } from "fp-ts/lib/function";
import { ActionSheet } from "native-base";
import React, { useCallback, useEffect } from "react";
import { SafeAreaView, ScrollView, StyleSheet } from "react-native";
import {
ButtonSolid,
ContentWrapper,
IOToast
} from "@pagopa/io-app-design-system";
import { useDispatch } from "react-redux";
import { RouteProp, useNavigation, useRoute } from "@react-navigation/native";
import { useIOSelector } from "../../../store/hooks";
import { PaymentRequestsGetResponse } from "../../../../definitions/backend/PaymentRequestsGetResponse";
import { IOToast } from "../../../components/Toast";
import { IOStyles } from "../../../components/core/variables/IOStyles";
import BaseScreenComponent from "../../../components/screens/BaseScreenComponent";
import {
Expand Down Expand Up @@ -49,6 +45,7 @@ import {
runStartOrResumePaymentActivationSaga
} from "../../../store/actions/wallet/payment";
import { fetchWalletsRequestWithExpBackoff } from "../../../store/actions/wallet/wallets";
import { useIOSelector } from "../../../store/hooks";
import {
bancomatPayConfigSelector,
isPaypalEnabledSelector
Expand Down

0 comments on commit 1ef8a55

Please sign in to comment.