GLOBAL PATCH
This commit is contained in:
1 parent
78b8ff61a7
commit
df3165dac0
31 files changed
+1678
-1323
No files matched your search
@@ -8,6 +8,8 @@ import { yupResolver } from "@hookform/resolvers/yup";
|
||||
import styles from "./ModalRequestForm.module.css";
|
||||
import Button from "../Button/Button";
|
||||
import { client } from "../../api/client";
|
||||
import Modalka from "../Modal/Modal";
|
||||
|
||||
|
||||
// ✅ Схема валидации
|
||||
const schema = yup.object().shape({
|
||||
@@ -108,24 +110,7 @@ const ModalRequestForm: React.FC<Props> = ({ open, onClose }) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Modal
|
||||
open={isOpen}
|
||||
footer={null}
|
||||
onCancel={() => setIsOpen(false)}
|
||||
centered
|
||||
width={500}
|
||||
>
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 40 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.35 }}
|
||||
className={styles.modalBox}
|
||||
>
|
||||
<p className={styles.title}>
|
||||
Спасибо за обращение! Мы свяжемся с Вами в ближайшее время. Удачного дня!
|
||||
</p>
|
||||
</motion.div>
|
||||
</Modal>
|
||||
<Modalka open={isOpen} onClose={() => setIsOpen(false)} />
|
||||
<Modal
|
||||
open={open}
|
||||
footer={null}
|
||||
|
||||
Reference in new issue
Block a user