fix login bug

master
mpn 2024-03-08 15:19:09 +03:30
parent c3786516b4
commit 8ed24f0631
6 changed files with 15 additions and 9 deletions

View File

@ -30,10 +30,10 @@ const BetweenSexualSection = () => {
</p>
</div>
<p className="mt-3 mb-0 text-sm text-gray-500">
{/* <p className="mt-3 mb-0 text-sm text-gray-500">
لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با
استفاده از طراحان گرافیک است
</p>
</p> */}
<div className="mt-10 xs:block lg:flex">
<Link
@ -52,7 +52,9 @@ const BetweenSexualSection = () => {
</div>
</div>
</div>
<h3 className="xs:text-lg lg:text-xl ">بهداشت مصرفی و روزانه بانوان</h3>
<h3 className="xs:text-lg lg:text-xl ">
بهداشت مصرفی و روزانه بانوان
</h3>
<p className="px-3 py-1 mt-2 mb-0 text-sm rounded-full w-fit bg-sky-200">
شروع خرید{" "}
@ -76,7 +78,9 @@ const BetweenSexualSection = () => {
</div>
</div>
</div>
<h3 className="xs:text-lg lg:text-xl ">بهداشت مصرفی و روزانه آقایان</h3>
<h3 className="xs:text-lg lg:text-xl ">
بهداشت مصرفی و روزانه آقایان
</h3>
<p className="px-3 py-1 mt-2 mb-0 text-sm rounded-full w-fit bg-sky-200">
شروع خرید{" "}

View File

@ -9,7 +9,7 @@ import shs from "../../../public/images/6.png";
const HeroSection = () => {
return (
<div className=" xs:mt-[150px] md:mt-[60px] xl:mt-[180px] relative">
<div className=" xs:mt-[150px] md:mt-[60px] xl:mt-[90px] relative">
<div className="text-center">
<h1 className=" xs:text-3xl lg:text-5xl xl:text-6xl text-white font-bold">
وسمه ، بُن مضـــــــــــارع زیبایی

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -55,6 +55,8 @@ const Login = () => {
console.log(data);
localStorage.setItem("token", "Bearer " + data.access_token);
if (data.user.signUpStatus == 1) {
setStepLogin(2);
} else if (data.user.signUpStatus == 10) {
@ -63,7 +65,6 @@ const Login = () => {
position: "bottom-right",
closeOnClick: true,
});
localStorage.setItem("token", "Bearer " + data.access_token);
router.push("/profile");
}
@ -92,6 +93,7 @@ const Login = () => {
}
);
localStorage.removeItem("token");
CTX.setLoading(false);
CTX.setProfile(data.user);
if (data.user.signUpStatus == 10) {
@ -101,7 +103,7 @@ const Login = () => {
position: "bottom-right",
closeOnClick: true,
});
localStorage.setItem("token", data.access_token);
localStorage.setItem("token", "Bearer " + data.access_token);
router.push("/profile");
}

View File

@ -9,7 +9,7 @@ const Page = () => {
<SideBarProfile />
<div className="lg:col-span-3 xl:col-span-4 ">
<div className="bg-primary-500 xs:p-2 lg:p-5 rounded-xl mt-5 ">
{/* <div className="bg-primary-500 xs:p-2 lg:p-5 rounded-xl mt-5 ">
<div className="flex">
<div className="xs:hidden lg:block">
<svg
@ -39,7 +39,7 @@ const Page = () => {
خرید ادامـــــه دارد
</button>
</div>
</div>
</div> */}
<div className="bg-gray-200 p-5 mt-5 rounded-lg">
<p className="mb-0 font-bold">سفارش جاری</p>