Skip to content

Commit

Permalink
fix(ContributorButton): changes subscribed and not subscribed display
Browse files Browse the repository at this point in the history
  • Loading branch information
newick authored and lutangar committed Sep 26, 2019
1 parent 4243c61 commit 9757d20
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/organisms/Contributor/ContributorButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ const ContributorButton = ({
onUnsubscribe
}: Props) => (
<Container>
{subscribed && (
<BackgroundButton onClick={onUnsubscribe}>Abonné</BackgroundButton>
)}
{subscribed && <BorderButton onClick={onUnsubscribe}>Abonné</BorderButton>}
{!subscribed && (
<BorderButton onClick={onSubscribe}>S&apos;abonner</BorderButton>
<BackgroundButton onClick={onSubscribe}>S&apos;abonner</BackgroundButton>
)}
</Container>
);
Expand Down

0 comments on commit 9757d20

Please sign in to comment.