-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: back button on order page, issue modal merge conflict and add mi…
…ssing migrations
- Loading branch information
Showing
7 changed files
with
5,716 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -200,63 +200,59 @@ const IssueModal = (props: IssueModalProps) => { | |
]; | ||
|
||
return ( | ||
<Modal isOpen={isOpen} onClose={onClose} isCentered={kind === "coupon"}> | ||
<ModalOverlay /> | ||
{!showCrispModal && ( | ||
<ModalContent | ||
mx={2.5} | ||
mt={kind == "order" ? 5 : "auto"} | ||
borderRadius="2.5xl" | ||
> | ||
<ModalCloseButton size="lg" top={4} right={4} /> | ||
<ModalBody display="flex" flexDir="column" px={9} pb={16} pt={4}> | ||
<OrderIssueContent kind={kind} id={id} issues={issues} /> | ||
<Divider my={6} /> | ||
<Flex direction="column" gap={4}> | ||
<ItemLink | ||
onClick={() => setIsOpenCrisp(true)} | ||
icon={HiMiniChatBubbleOvalLeftEllipsis} | ||
text="Discutez avec nous en direct" | ||
/> | ||
{kind === "order" && ( | ||
<> | ||
<Text | ||
my={2} | ||
fontSize={14} | ||
fontWeight={500} | ||
textAlign="center" | ||
color="disabled" | ||
> | ||
ou | ||
<Modal isOpen={isOpen} onClose={onClose} isCentered={kind === "coupon"}> | ||
<ModalOverlay /> | ||
{!showCrispModal && ( | ||
<ModalContent | ||
mx={2.5} | ||
mt={kind == "order" ? 5 : "auto"} | ||
borderRadius="2.5xl" | ||
> | ||
<ModalCloseButton size="lg" top={4} right={4} /> | ||
<ModalBody display="flex" flexDir="column" px={9} pb={16} pt={4}> | ||
<OrderIssueContent kind={kind} id={id} issues={issues} /> | ||
<Divider my={6} /> | ||
<Flex direction="column" gap={4}> | ||
<ItemLink | ||
onClick={() => setShowCrispModal(true)} | ||
icon={HiMiniChatBubbleOvalLeftEllipsis} | ||
text="Discutez avec nous en direct" | ||
/> | ||
{kind === "order" && ( | ||
<> | ||
<Text | ||
my={2} | ||
fontSize={14} | ||
fontWeight={500} | ||
textAlign="center" | ||
color="disabled" | ||
> | ||
ou | ||
</Text> | ||
<ItemLink | ||
href="telto:0472402828" | ||
icon={HiPhone} | ||
text="04 72 40 28 28" | ||
/> | ||
<ItemLink | ||
href="mailto:[email protected]" | ||
icon={HiEnvelope} | ||
text="[email protected]" | ||
/> | ||
<Flex direction="column" gap={4} fontSize={"sm"}> | ||
<Text fontWeight={500} textAlign="center" color="disabled"> | ||
Disponible du lundi au vendredi de | ||
<br /> | ||
09h à 12h30 puis de 14h à 17h30 | ||
</Text> | ||
<ItemLink | ||
href="telto:0472402828" | ||
icon={HiPhone} | ||
text="04 72 40 28 28" | ||
/> | ||
<ItemLink | ||
href="mailto:[email protected]" | ||
icon={HiEnvelope} | ||
text="[email protected]" | ||
/> | ||
<Flex direction="column" gap={4} fontSize={"sm"}> | ||
<Text | ||
fontWeight={500} | ||
textAlign="center" | ||
color="disabled" | ||
> | ||
Disponible du lundi au vendredi de | ||
<br /> | ||
09h à 12h30 puis de 14h à 17h30 | ||
</Text> | ||
</Flex> | ||
</> | ||
)} | ||
</Flex> | ||
</ModalBody> | ||
</ModalContent> | ||
)} | ||
</Modal> | ||
</Flex> | ||
</> | ||
)} | ||
</Flex> | ||
</ModalBody> | ||
</ModalContent> | ||
)} | ||
</Modal> | ||
); | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.