Skip to content

Commit

Permalink
Remove AdoptionButton component and use SubmitButton instead
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinesalib committed May 25, 2020
1 parent f87f112 commit 1759d95
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 50 deletions.

This file was deleted.

This file was deleted.

11 changes: 8 additions & 3 deletions app/javascript/containers/AdoptionCard/AdoptionCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styles from './AdoptionCard.sass'
import TimeAgo from 'javascript-time-ago'
// Load pt-BR locale for time ago
import br from 'javascript-time-ago/locale/pt'
import AdoptionButton from "./AdoptionButton/AdoptionButton";
import SubmitButton from "../../components/SubmitButton/SubmitButton";

TimeAgo.addLocale(br);

Expand Down Expand Up @@ -59,8 +59,13 @@ const AdoptionCard = (props) => {
</div>
</div>
<div className={styles.adoptionCardBottom}>
<div className={styles.adoptionButton}>
<AdoptionButton clicked={props.modalOpen} userRegisteredInterest={props.userRegisteredInterest} />
<div>
<SubmitButton
clicked={props.modalOpen}
isDisabled={props.userRegisteredInterest}
classStyleModifier={styles.adoptionButton}
title='Adotar'
/>
</div>
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions app/javascript/containers/AdoptionCard/AdoptionCard.sass
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,9 @@
border-radius: 3px
background-color: #F2F3F3

.adoptionButton
width: 85px
height: 35px

@media only screen and (max-width: 600px)
width: 500px !important

0 comments on commit 1759d95

Please sign in to comment.