fix mobile modal

This commit is contained in:
AykutSarac 2022-08-06 17:48:28 +03:00
parent 136f4f94ef
commit 4df6cd6f95

View File

@ -66,11 +66,15 @@ const Home: React.FC = () => {
{isMobile ? "Incompatible Device" : "GO TO EDITOR"}
</Styles.StyledButton>
<Styles.StyledSponsorButton onClick={() => setModalVisible(true)}>
Help JSON Visio Accomplish It's Goals
<FaHeart />
</Styles.StyledSponsorButton>
<GoalsModal visible={isModalVisible} setVisible={setModalVisible} />
{!isMobile && (
<>
<Styles.StyledSponsorButton onClick={() => setModalVisible(true)}>
Help JSON Visio Accomplish It's Goals
<FaHeart />
</Styles.StyledSponsorButton>
<GoalsModal visible={isModalVisible} setVisible={setModalVisible} />
</>
)}
</Styles.StyledHeroSection>
<Styles.StyledPreviewSection>