fix: add preview modal
This commit is contained in:
@@ -1,7 +1,19 @@
|
||||
'use client';
|
||||
|
||||
import s from './styles.module.scss';
|
||||
import { Button } from '@shared/ui';
|
||||
import { Button, Icons } from '@shared/ui';
|
||||
import { CONTACTS } from '@shared/const/contacts';
|
||||
import { useModal } from '@core/providers/modal-provider';
|
||||
import { ConsultationModal } from '@/widgets';
|
||||
|
||||
function CallUs() {
|
||||
const modal = useModal();
|
||||
const openModal = () => modal.showModal(<ConsultationModal />);
|
||||
|
||||
const handlePhoneClick = () => {
|
||||
window.open(`tel:${CONTACTS.PHONE}`, '_self');
|
||||
};
|
||||
|
||||
return (
|
||||
<section className={s.CallUs}>
|
||||
<div className={s.LeftBlock}>
|
||||
@@ -9,8 +21,14 @@ function CallUs() {
|
||||
<p className={s.LineText}>Свяжитесь с нами любым удобным способом</p>
|
||||
</div>
|
||||
<div className={s.RightBlock}>
|
||||
<Button>Написать в чат</Button>
|
||||
<Button>Бесплатный звонок</Button>
|
||||
<Button className={s.Btn} onClick={openModal}>
|
||||
<Icons.MobilePhone className={s.Icon} />
|
||||
Мы вам перезвоним
|
||||
</Button>
|
||||
<Button className={s.Btn} onClick={handlePhoneClick}>
|
||||
<Icons.MobileContact className={s.Icon} />
|
||||
Связаться с нами
|
||||
</Button>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user