update src/views/Auth/Desktop/index.js and src/views/Auth/SignUp/index.js

temp
mahdi 2 years ago
parent 0d590be14a
commit de24948c57
  1. 8
      src/views/Auth/Desktop/index.js
  2. 4
      src/views/Auth/SignUp/index.js

@ -1,6 +1,6 @@
import React, { useState, useEffect } from "react"; import React, { useState, useEffect } from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import {publicApi} from '../../../redux/actions'; import { publicApi } from "../../../redux/actions";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
import SignUp from "../SignUp"; import SignUp from "../SignUp";
import Button from "../../../components/Button"; import Button from "../../../components/Button";
@ -39,21 +39,21 @@ export const Desktop = ({setHeaderOptions}) => {
</p> </p>
<div className="mt-16 flex flex-col gap-4 w-full"> <div className="mt-16 flex flex-col gap-4 w-full">
<Button <Button
title="ثبت نام" title="ورود یا ثبت نام"
backgroundColor="bg-blueC0" backgroundColor="bg-blueC0"
border={{ color: "#196EC055", width: "0px" }} border={{ color: "#196EC055", width: "0px" }}
width="100%" width="100%"
color="text-white" color="text-white"
onClick={() => setPhase("signup")} onClick={() => setPhase("signup")}
/> />
<Button {/* <Button
title="ورود" title="ورود"
backgroundColor="bg-transparent border border-solid border-blueC0" backgroundColor="bg-transparent border border-solid border-blueC0"
border={{ color: "", width: 1 }} border={{ color: "", width: 1 }}
width="100%" width="100%"
color="text-blueC0" color="text-blueC0"
onClick={() => setPhase("login")} onClick={() => setPhase("login")}
/> /> */}
</div> </div>
</div> </div>
); );

@ -6,7 +6,6 @@ import Timer from "../../../components/Timer";
import onInput from "../../../utils/onInput"; import onInput from "../../../utils/onInput";
import Loading from "../../../components/Loading"; import Loading from "../../../components/Loading";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { user, publicApi } from "../../../redux/actions"; import { user, publicApi } from "../../../redux/actions";
import _ from "lodash"; import _ from "lodash";
@ -136,6 +135,7 @@ function SignUp({
} }
}, [loginFlag]); }, [loginFlag]);
const light = theme === "light"; const light = theme === "light";
return ( return (
<div <div
className="w-screen overflow-x-hidden flex flex-row transform -translate-y-10 relative" className="w-screen overflow-x-hidden flex flex-row transform -translate-y-10 relative"
@ -266,7 +266,7 @@ function SignUp({
/> />
<div className="mt-10 flex flex-row text-center w-full justify-center"> <div className="mt-10 flex flex-row text-center w-full justify-center">
<div className="text-xs text-gray1 dark:text-gray-200 lg:text-sm"> <div className="text-xs text-gray1 dark:text-gray-200 lg:text-sm">
شماره خود را اشتباه وارد کردید؟{" "} شماره خود را اشتباه وارد کردید؟
<button <button
className="bg-transparent border-none text-greenBA font-medium" className="bg-transparent border-none text-greenBA font-medium"
onClick={() => setLevel("phonenumber")} onClick={() => setLevel("phonenumber")}

Loading…
Cancel
Save