import React, {useState} from 'react'; import { Link } from 'react-router-dom'; import {generateSvgAvatar} from "../images/GenerateOnboardingSvg/GenerateSvg"; import Logo from "../images/logo.png"; import {observer} from "mobx-react-lite"; import { registrationStore } from "../store/store"; const Onboarding4 = observer(()=>{ const [checkBoxesSelected, setCheckBoxesSelected] = useState([]) function createAccount () { if(checkBoxesSelected.length===2) { registrationStore.pushAccountData() } } function saveCheckBoxesValues(e) { const { id, checked } = e.target setCheckBoxesSelected([...checkBoxesSelected, id]) if (!checked) { setCheckBoxesSelected(checkBoxesSelected.filter(item=>item!==id)) } } const firstNameAccount = registrationStore.accountData.length && registrationStore.accountData.find(item=>item.key==="first_name").value return (
{/* Content */}
{/* Header */}
{/* Logo */} logo
Have an account? Sign In
{/* Progress bar */}
  • 1
  • 2
  • 3
  • 4

{firstNameAccount ? `Nice to meet you, ${firstNameAccount} 🙌` : 'Please, go back step 2'}

{/* Image */}
); }); export default Onboarding4;