install and handle casle & prevent page dashboard & handle register and code verfication & get data in clinics page

This commit is contained in:
Ehsan
2025-05-27 03:40:06 +03:30
parent a9f98aea3b
commit d95815d4aa
27 changed files with 336 additions and 206 deletions
+7 -4
View File
@@ -7,23 +7,26 @@ import LayoutRegister from "./LayoutRegister";
function RegisterPage({ matchedCity }) {
const [isSendMsg, setIsSendMsg] = useState(false);
const [uuid, setUuid] = useState("");
const [num, setNum] = useState("");
return (
<LayoutRegister matchedCity={matchedCity}>
{isSendMsg ? (
<VerificationPage
num={num}
setIsSendMsg={setIsSendMsg}
setStep={false}
link="/"
num={num}
uuid={uuid}
setStep={false}
setIsSendMsg={setIsSendMsg}
/>
) : (
<LogInPage
matchedCity={matchedCity}
num={num}
setNum={setNum}
setStep={false}
setUuid={setUuid}
matchedCity={matchedCity}
setIsSendMsg={setIsSendMsg}
/>
)}