Merge branch 'tomainone' into 'staging'

мобильный чат

See merge request frontend/squiz!197
This commit is contained in:
Nastya 2024-02-17 17:32:59 +00:00
commit 156d34d843

@ -73,7 +73,7 @@ export default function FloatingSupportChat() {
onClose={handleClose} onClose={handleClose}
TransitionComponent={Transition} TransitionComponent={Transition}
> >
<Chat onclickArrow={handleClose} /> <Chat open={open} onclickArrow={handleClose} />
</Dialog> </Dialog>
<Fab <Fab
disableRipple disableRipple
@ -94,7 +94,7 @@ export default function FloatingSupportChat() {
variant={"extended"} variant={"extended"}
onClick={() => { onClick={() => {
if (isMobile) { if (isMobile) {
setOpen(true); handleClickOpen();
} else { } else {
setIsChatOpened((prev) => !prev); setIsChatOpened((prev) => !prev);
} }