Skip to content

Conversation

@HyrumG
Copy link

@HyrumG HyrumG commented Jul 3, 2019

Gabe asked for ButtonLink to be removed and to put the buttons back.

@HyrumG HyrumG requested a review from joeycozza July 3, 2019 21:21
@joeycozza
Copy link

I made the ButtonLink component because on a fresh CRA app, codeclimate has a bunch of complaints about duplicated code (and in my opinion, it is right. We use a Button 5 times with the exactly the same props, except for url, and children).

I'm fine either way, but I did it to reduce code duplication, and show the pattern of an internal component that is actually being used in more than 1 place.

@joeycozza joeycozza merged commit e1cd17e into develop Jul 8, 2019
@joeycozza joeycozza deleted the add-button-back branch July 8, 2019 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants