This is just a technology testing project based on Create React App and TailwindCSS
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import React, { useEffect } from 'react'
  2. import PropTypes from 'prop-types'
  3. import ButtonSecondary from './controls/ButtonSecondary'
  4. import { FormRegistration } from './forms/FormRegistration'
  5. export function ServicePolicy(props) {
  6. const { setPopupTitle, setPopupContent, setPopupOpened, close } = props
  7. useEffect(() => {
  8. if (setPopupTitle) { setPopupTitle('Service Policy') }
  9. })
  10. const goRegistration = () => {
  11. setPopupOpened(false)
  12. setTimeout(() => {
  13. setPopupContent(<FormRegistration setPopupTitle={setPopupTitle} setPopupContent={setPopupContent} setPopupOpened={setPopupOpened} close={close} />)
  14. setPopupOpened(true)
  15. }, 200);
  16. }
  17. return (
  18. <>
  19. <div className="overflow-y-auto max-h-screen-66 p-3">
  20. <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. </p>
  21. <p>Delectus sequi, iste error dignissimos necessitatibus aliquam perspiciatis pariatur reprehenderit dolor maiores sed officiis modi, praesentium atque? Delectus amet optio tempora ipsam, molestiae unde quibusdam minus placeat dolorem exercitationem enim alias?</p>
  22. <p>Porro tempore natus minus ex voluptas, hic culpa iure vero quod laudantium quas enim pariatur ullam commodi! Totam deleniti nesciunt earum, nam modi aspernatur rem harum pariatur, voluptatibus, adipisci accusamus sequi perferendis corrupti explicabo excepturi commodi soluta necessitatibus! Officiis similique nemo architecto odit debitis cupiditate reprehenderit ex vel atque beatae blanditiis dolores sequi unde quisquam molestias, eum sit aut. Soluta hic provident autem eius a aliquid neque in, distinctio eveniet ullam sequi pariatur deleniti perferendis magni debitis minus quod!</p>
  23. <p>Facere ex error molestiae maxime ullam dolor blanditiis dolores fuga ipsam vero distinctio, ipsum delectus harum optio quo repudiandae unde beatae rerum laborum cumque, quisquam quia quod?</p>
  24. <p>Numquam praesentium ex recusandae quia tenetur, quod, illum officiis magni est alias consequatur maiores accusamus ipsam provident sequi dolores excepturi exercitationem vitae aspernatur perferendis porro sit accusantium aut? Tempora nesciunt, autem dignissimos sit ratione dolores odit amet laborum nihil corporis id nobis tempore! Quam rerum repudiandae expedita voluptate error dolorum a. Obcaecati fugiat magnam earum?</p>
  25. </div>
  26. <div className="service-policy-form p-2 mb-0 bg-primary-200 border-t rounded-b-lg">
  27. <ButtonSecondary type="button" text="Go to Registration" action={goRegistration} />
  28. </div>
  29. </>
  30. )
  31. }
  32. ServicePolicy.propTypes = {
  33. setPopupTitle: PropTypes.func,
  34. setPopupContent: PropTypes.func,
  35. setPopupOpened: PropTypes.func,
  36. close: PropTypes.func,
  37. }
  38. export default ServicePolicy