|
|
@ -2,6 +2,8 @@ import { useState } from "react"; |
|
|
|
import HeaderMain from "../../_components/Header/HeaderMain"; |
|
|
|
import HeaderMain from "../../_components/Header/HeaderMain"; |
|
|
|
import './HomePage.style.scss' |
|
|
|
import './HomePage.style.scss' |
|
|
|
import { homeType } from "../../_constants/home_type"; |
|
|
|
import { homeType } from "../../_constants/home_type"; |
|
|
|
|
|
|
|
import { useSelector } from "react-redux"; |
|
|
|
|
|
|
|
import moment from "moment" |
|
|
|
|
|
|
|
|
|
|
|
export default function HomePage() { |
|
|
|
export default function HomePage() { |
|
|
|
const [typeCopy, setTypeCopy] = useState('') |
|
|
|
const [typeCopy, setTypeCopy] = useState('') |
|
|
@ -9,7 +11,7 @@ export default function HomePage() { |
|
|
|
[homeType.LANDING]: false, |
|
|
|
[homeType.LANDING]: false, |
|
|
|
[homeType.REGISTER]: false,
|
|
|
|
[homeType.REGISTER]: false,
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
const authentication = useSelector((state) => state.authentication); |
|
|
|
|
|
|
|
|
|
|
|
const handleCopy = (type, value) => { |
|
|
|
const handleCopy = (type, value) => { |
|
|
|
navigator.clipboard.writeText(value) |
|
|
|
navigator.clipboard.writeText(value) |
|
|
@ -82,23 +84,23 @@ export default function HomePage() { |
|
|
|
<div className="box-info-agency box-info"> |
|
|
|
<div className="box-info-agency box-info"> |
|
|
|
<div className="avatar-agency"> |
|
|
|
<div className="avatar-agency"> |
|
|
|
<img |
|
|
|
<img |
|
|
|
src="https://letsenhance.io/static/73136da51c245e80edc6ccfe44888a99/1015f/MainBefore.jpg" |
|
|
|
src="https://www.svgrepo.com/show/384674/account-avatar-profile-user-11.svg" |
|
|
|
alt="Logo Sun-E" |
|
|
|
alt="Logo Sun-E" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="main-info-agency"> |
|
|
|
<div className="main-info-agency"> |
|
|
|
<p className="name-agency"> |
|
|
|
<p className="name-agency"> |
|
|
|
Tên đại lý |
|
|
|
{authentication.fullname} |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
<div className="sub-info-agency"> |
|
|
|
<div className="sub-info-agency"> |
|
|
|
{renderInfoAgencyItem('05/02/2000')} |
|
|
|
{renderInfoAgencyItem(moment(authentication.birthday).format("DD/MM/YYYY"))} |
|
|
|
{renderInfoAgencyItem('0397225122')} |
|
|
|
{renderInfoAgencyItem(authentication.phone)} |
|
|
|
{renderInfoAgencyItem('hoangmt@gmail.com')} |
|
|
|
{renderInfoAgencyItem(authentication.email)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{renderBoxLink('Link Đăng ký tuyến dưới', 'https://docs.google.com', homeType.REGISTER)} |
|
|
|
{renderBoxLink('Link Đăng ký tuyến dưới', authentication.downline_register, homeType.REGISTER)} |
|
|
|
{renderBoxLink('Link Landing page cho khách hàng', 'https://docs.google.com/document/d/1hYRL9Su-zTbNXXFGb8AC8-u1NWtCIi4tZKTsRrrqSOg/edit', homeType.LANDING)} |
|
|
|
{renderBoxLink('Link Landing page cho khách hàng', authentication.promotional_link, homeType.LANDING)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|