You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ThirdStepCreateReview.js 866B

1234567891011121314151617181920212223242526272829303132
  1. import React from "react";
  2. import PropTypes from "prop-types";
  3. import {
  4. AltTitle,
  5. LogoImage,
  6. MainTitle,
  7. ThirdStepCreateReviewContainer,
  8. } from "./ThirdStepCreateReview.styled";
  9. import { useTranslation } from "react-i18next";
  10. import { useDispatch } from "react-redux";
  11. import { closeModal } from "../../../store/actions/modal/modalActions";
  12. const ThirdStepCreateReview = () => {
  13. const { t } = useTranslation();
  14. const dispatch = useDispatch();
  15. setTimeout(() => {
  16. dispatch(closeModal());
  17. }, 3000);
  18. return (
  19. <ThirdStepCreateReviewContainer>
  20. <LogoImage />
  21. <MainTitle>{t("reviews.finishedReviewTitle")}</MainTitle>
  22. <AltTitle>{t("reviews.finishedReviewAltTitle")}</AltTitle>
  23. </ThirdStepCreateReviewContainer>
  24. );
  25. };
  26. ThirdStepCreateReview.propTypes = {
  27. children: PropTypes.node,
  28. };
  29. export default ThirdStepCreateReview;