fix bug save and set data just with one key, remove page login from appo page, disable not avalaible data in calendar, change steps for pages in appo, get data user, edit and set in page user-info
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
import Date from "./date";
|
||||
|
||||
// Components
|
||||
import Content from "./Content";
|
||||
import Layout from "@/components/layout";
|
||||
import Paying from "@/components/appointment/paying";
|
||||
import Detail from "@/components/appointment/detail";
|
||||
import FailedPay from "@/components/appointment/failedPay";
|
||||
import SuccessPay from "@/components/appointment/successPay";
|
||||
|
||||
function Container({
|
||||
step,
|
||||
data,
|
||||
doctor,
|
||||
setData,
|
||||
setStep,
|
||||
matchedCity,
|
||||
isForAnother,
|
||||
setIsForAnother,
|
||||
}) {
|
||||
const elements = [
|
||||
<Date doctor={doctor} setStep={setStep} />,
|
||||
// <LogInPage setIsSendMsg={false} setStep={setStep} />,
|
||||
// <VerificationPage setIsSendMsg={false} link={false} setStep={setStep} />,
|
||||
<Detail
|
||||
data={data}
|
||||
setStep={setStep}
|
||||
setData={setData}
|
||||
isForAnother={isForAnother}
|
||||
setIsForAnother={setIsForAnother}
|
||||
/>,
|
||||
<Paying setStep={setStep} />,
|
||||
<SuccessPay setStep={setStep} />,
|
||||
<FailedPay setStep={setStep} />,
|
||||
];
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* {step === 1 || step === 2 ? (
|
||||
<RegisterPage>{elements[step]}</RegisterPage>
|
||||
) : ( */}
|
||||
<Layout
|
||||
title="رزرو"
|
||||
name="booking"
|
||||
disableFooter={step > 2}
|
||||
matchedCity={matchedCity}
|
||||
paddingBottom="pb-[80px]"
|
||||
>
|
||||
<Content
|
||||
disableSide={step === 5 || step === 6}
|
||||
isFirst={step === 0}
|
||||
setStep={setStep}
|
||||
doctor={doctor}
|
||||
step={step}
|
||||
>
|
||||
{elements[step]}
|
||||
</Content>
|
||||
</Layout>
|
||||
{/* )} */}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default Container;
|
||||
Reference in New Issue
Block a user