Skip to content

Commit

Permalink
chore: Enable new qr code screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Hantex9 committed Jan 30, 2024
1 parent dd2e77e commit 33611af
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions ts/screens/wallet/WalletHomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import { IOStackNavigationRouteProps } from "../../navigation/params/AppParamsLi
import { MainTabParamsList } from "../../navigation/params/MainTabParamsList";
import {
navigateBack,
navigateToPaymentScanQrCode,
navigateToTransactionDetailsScreen,
navigateToWalletAddPaymentMethod
} from "../../store/actions/navigation";
Expand Down Expand Up @@ -421,13 +420,9 @@ class WalletHomeScreen extends React.PureComponent<Props, State> {
}

private navigateToPaymentScanQrCode = () => {
if (this.props.isDesignSystemEnabled) {
this.props.navigation.navigate(WalletBarcodeRoutes.WALLET_BARCODE_MAIN, {
screen: WalletBarcodeRoutes.WALLET_BARCODE_SCAN
});
} else {
this.props.navigateToPaymentScanQrCode();
}
this.props.navigation.navigate(WalletBarcodeRoutes.WALLET_BARCODE_MAIN, {
screen: WalletBarcodeRoutes.WALLET_BARCODE_SCAN
});
};

private footerButton(potWallets: pot.Pot<ReadonlyArray<Wallet>, Error>) {
Expand Down Expand Up @@ -532,7 +527,6 @@ const mapDispatchToProps = (dispatch: Dispatch) => ({
loadIdPayWalletData: () => dispatch(idPayWalletGet.request()),
navigateToWalletAddPaymentMethod: (keyFrom?: string) =>
navigateToWalletAddPaymentMethod({ inPayment: O.none, keyFrom }),
navigateToPaymentScanQrCode: () => navigateToPaymentScanQrCode(),
navigateToTransactionDetailsScreen: (transaction: Transaction) => {
navigateToTransactionDetailsScreen({
transaction,
Expand Down

0 comments on commit 33611af

Please sign in to comment.