"use client"; import AppContext from "@ctx/AppContext"; import Buttonbriz from "plugins/Buttonbriz/page"; import Input from "plugins/Input/page"; import validateIranPhone from "plugins/IranPhoneRegex"; import React, { useContext, useState } from "react"; import { toast } from "react-toastify"; const LoginStep = (props) => { const [roleCheckBox, setRoleCheckBox] = useState(false); const [alertRolCheckBox, setAlertRolCheckBox] = useState(false); const CTX = useContext(AppContext); const phoneNumber = CTX.state.phoneNumber; const handleConfirmPhoneNumber = () => { setAlertRolCheckBox(false); if (validateIranPhone(phoneNumber) && roleCheckBox) { CTX.ConfirmPhoneNumber(phoneNumber); } else { if (!validateIranPhone(phoneNumber)) { toast.error(" شماره تماس را درست وارد کنید ", { position: "bottom-right", closeOnClick: true, }); } else if (!roleCheckBox) { setTimeout(() => { setAlertRolCheckBox(true); }, 100); } } }; return (
{" "} برای ورود یا ثبت نام به اپلیکیشن مدیریت وظایف رستوران باید شماره تلفن همراه خود را وارد کنید
با تایید شماره تلفن همراه با همه شرایط حریم خصوص اپلیکیشن مدیریت توک موافقت می کنم