update design page doctor item & design page account & success and failed pay

This commit is contained in:
Ehsan
2024-08-28 03:14:42 +03:30
parent 7925493681
commit 6384dd10b6
20 changed files with 1106 additions and 56 deletions
@@ -1,19 +1,24 @@
import { useState } from "react";
import SuccessPay from "./SuccessPay";
import FailedPay from "./FailedPay";
import Paying from "./Paying";
function Payment() {
const [typePay, setTypePay] = useState('default');
function Payment({ setIsPay, fadeElement, typePay, setTypePay }) {
return (
<>
{typePay === 'default' ?
<Paying setTypePay={setTypePay} /> :
<Paying
setTypePay={setTypePay}
fadeElement={fadeElement}
/> :
typePay === 'success' ?
<SuccessPay /> :
<FailedPay />
<FailedPay
setIsPay={setIsPay}
setTypePay={setTypePay}
fadeElement={fadeElement}
/>
}
</>
)