Skip to content

Commit

Permalink
Merge pull request binary-com#27 from ali-hosseini-fs/add-form-tag
Browse files Browse the repository at this point in the history
minor fixes
  • Loading branch information
Ali(Ako) Hosseini committed Mar 13, 2022
2 parents 4c5643b + 2671f6c commit 29a6c2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
<Icon
Expand Down
5 changes: 3 additions & 2 deletions packages/account/src/Styles/account.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -2261,7 +2260,9 @@ $MIN_HEIGHT_FLOATING: calc(
width: 80%;
padding: 2.4rem;
}

&-open-desc-link {
cursor: pointer;
}
&-item {
display: flex;
flex-direction: row;
Expand Down

0 comments on commit 29a6c2e

Please sign in to comment.