update design page doctor item & design page account & success and failed pay
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
}
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user