Добавил иконку с названием на вкладку, исправил форму для вопроса
This commit is contained in:
1 parent
797d4a091f
commit
b6f66ab4a7
5 files changed
+180
-95
No files matched your search
@@ -2,13 +2,12 @@ import React from "react";
|
||||
import styles from "./QuestionsBlock.module.css";
|
||||
import Button from "../Button/Button";
|
||||
import { PhoneOutlined } from "@ant-design/icons";
|
||||
import PhoneRequest from "../../features/MainPage/PhoneRequest";
|
||||
import ModalRequestFormQuastion from "../../features/MainPage/PhoneRequest";
|
||||
import { useState } from "react";
|
||||
|
||||
const QuestionsBlock: React.FC = () => {
|
||||
|
||||
const handleClick = () => {
|
||||
console.log('Кнопка нажата!');
|
||||
};
|
||||
const [open, setOpen] = useState(false);
|
||||
|
||||
return (
|
||||
<section className={styles.wrapper}>
|
||||
@@ -45,13 +44,13 @@ const QuestionsBlock: React.FC = () => {
|
||||
type="text"
|
||||
placeholder="+7 (___) ___-__-__"
|
||||
className={styles.input}
|
||||
/>
|
||||
/>*/}
|
||||
<Button
|
||||
label="ОТПРАВИТЬ"
|
||||
onClick={handleClick}
|
||||
label="ЗАДАТЬ ВОПРОС"
|
||||
onClick={() => setOpen(true)}
|
||||
/>
|
||||
</div>*/}
|
||||
<PhoneRequest/>
|
||||
|
||||
<ModalRequestFormQuastion open={open} onClose={() => setOpen(false)}/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in new issue
Block a user