|
|
@ -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"; |
|
|
@ -10,13 +10,13 @@ import logoIcon from "../SignUp/assets/logo.svg"; |
|
|
|
import bgImage from "./bg.svg"; |
|
|
|
import bgImage from "./bg.svg"; |
|
|
|
import arrowIcon from "../../../assets/icons/dropdown-blue.svg"; |
|
|
|
import arrowIcon from "../../../assets/icons/dropdown-blue.svg"; |
|
|
|
|
|
|
|
|
|
|
|
export const Desktop = ({setHeaderOptions}) => { |
|
|
|
export const Desktop = ({ setHeaderOptions }) => { |
|
|
|
const [phase, setPhase] = useState("manage"); |
|
|
|
const [phase, setPhase] = useState("manage"); |
|
|
|
const navigate = useNavigate(); |
|
|
|
const navigate = useNavigate(); |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
setHeaderOptions({show: false}); |
|
|
|
setHeaderOptions({ show: false }); |
|
|
|
},[]); |
|
|
|
}, []); |
|
|
|
|
|
|
|
|
|
|
|
const UserMangement = () => { |
|
|
|
const UserMangement = () => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
@ -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> |
|
|
|
); |
|
|
|
); |
|
|
|