Skip to content

Commit

Permalink
Update paymentoption.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Tekum-Emmanuella authored May 7, 2024
1 parent 8ef0f30 commit e8faaa2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions power-pay-frontend/src/components/paymentoption.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import QRScannerComponent from './scan_rq';
import UserInfo from './userinfo'; // Import the UserInfo component
import RecipientInfo from './RecipientInfo'; // Import the RecipientInfo component
import { Link } from "react-router-dom";

const PaymentOptions: React.FC = () => {
Expand All @@ -24,7 +24,7 @@ const PaymentOptions: React.FC = () => {
<h5 className="text-center pt-9 mb-2 text-black">Choose the option you wish to pay</h5>
</div>
<div className="pt-12">
<Link to={`UserInfo`}>
<Link to={`RecipientInfo`}>
<button onClick={handleInputManuallyClick} className='bg-blue-950 rounded-full w-80 m-auto px-4 text-white text-lg absolute inset-x-0 mb-20 bottom-12'>Input Manually</button>
<br></br>
</Link>
Expand All @@ -37,7 +37,7 @@ const PaymentOptions: React.FC = () => {
</div>
</div>
{showQRScanner && <QRScannerComponent />}
{showInputManually && <UserInfo />} {/* Render UserInfo component when showInputManually is true */}
{showInputManually && <RecipientInfo />} {/* Render RecipientInfo component when showInputManually is true */}
</div>
);
};
Expand Down

0 comments on commit e8faaa2

Please sign in to comment.