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 { store } from "../store/store"; const Onboarding4 = observer(() => { const [checkBoxesSelected, setCheckBoxesSelected] = useState([]); function createAccount() { if(checkBoxesSelected.length === 2) { store.pushAccountData(); sessionStorage.setItem('passPhrase', store.passPhrase); store.clearDataRegistration(); } }; function saveCheckBoxesValues(e) { const { id, checked } = e.target; setCheckBoxesSelected([...checkBoxesSelected, id]); if (!checked) { setCheckBoxesSelected(checkBoxesSelected.filter(item => item !== id)); } }; const firstNameAccount = store.accountData.length && store.accountData.find(item => item.key === "firstname").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;