handle register and poster and fix bugs

This commit is contained in:
Ehsan
2025-05-21 23:35:55 +03:30
parent 81f8042f6c
commit c469f2ee3c
23 changed files with 512 additions and 147 deletions
+9 -1
View File
@@ -7,14 +7,22 @@ import LayoutRegister from "./LayoutRegister";
function RegisterPage({ matchedCity }) {
const [isSendMsg, setIsSendMsg] = useState(false);
const [num, setNum] = useState("");
return (
<LayoutRegister matchedCity={matchedCity}>
{isSendMsg ? (
<SetCodePage setIsSendMsg={setIsSendMsg} setStep={false} link="/" />
<SetCodePage
num={num}
setIsSendMsg={setIsSendMsg}
setStep={false}
link="/"
/>
) : (
<LogInPage
matchedCity={matchedCity}
num={num}
setNum={setNum}
setStep={false}
setIsSendMsg={setIsSendMsg}
/>