From 875a83a6a12e4c4a04f6825d747ce5f09591fe4e Mon Sep 17 00:00:00 2001 From: "Ali(Ako) Hosseini" Date: Sun, 13 Mar 2022 11:35:51 +0330 Subject: [PATCH 1/2] feat/ add cursor pointer to the see example text --- packages/account/src/Styles/account.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/account/src/Styles/account.scss b/packages/account/src/Styles/account.scss index 54058be8bdc4..70c596f647cb 100644 --- a/packages/account/src/Styles/account.scss +++ b/packages/account/src/Styles/account.scss @@ -2243,7 +2243,6 @@ $MIN_HEIGHT_FLOATING: calc( @include mobile { margin-top: 2.4rem; } - &__card { border: 1px solid var(--general-section-5); border-radius: 8px; @@ -2261,7 +2260,9 @@ $MIN_HEIGHT_FLOATING: calc( width: 80%; padding: 2.4rem; } - + &-open-desc-link { + cursor: pointer; + } &-item { display: flex; flex-direction: row; From 2671f6c52805e269d293e9cfbc0f7f3a7aedf0b9 Mon Sep 17 00:00:00 2001 From: "Ali(Ako) Hosseini" Date: Sun, 13 Mar 2022 14:01:12 +0330 Subject: [PATCH 2/2] fix/ prevent form submission on expanding card --- .../src/Sections/Verification/ProofOfOwnership/Card.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/account/src/Sections/Verification/ProofOfOwnership/Card.jsx b/packages/account/src/Sections/Verification/ProofOfOwnership/Card.jsx index bf89fae6ec25..13390587284b 100644 --- a/packages/account/src/Sections/Verification/ProofOfOwnership/Card.jsx +++ b/packages/account/src/Sections/Verification/ProofOfOwnership/Card.jsx @@ -5,7 +5,10 @@ import ExpandedCard from './ExpandedCard.jsx'; import PropTypes from 'prop-types'; const Card = ({ card, handleChange, handleBlur, values, setFieldValue, index, error }) => { - const onClick = () => setIsOpen(!is_open); + const onClick = e => { + e.preventDefault(); + setIsOpen(!is_open); + }; const [is_open, setIsOpen] = React.useState(false); const icon = (