Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💅🏻 Changed add event button's style #205

Merged
merged 4 commits into from
Oct 12, 2017

Conversation

savva-k
Copy link
Collaborator

@savva-k savva-k commented Oct 10, 2017

screenshot 2017-10-10 22 59 16

Created an abstract component "FilterMenuLink" that has two descendants: FilterTab and AddEventButton.

#197

@coveralls
Copy link

Coverage Status

Coverage remained the same at 39.776% when pulling 415977b on savva-k:enhancement/add-event-styling into 2a98318 on kitos:master.

@@ -22,6 +23,8 @@ const FlexRow = styled.div`
display: flex;
`;

const AddEventButton = FilterMenuLink.extend``;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

semantically it should be a button, so you can use withComponent

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@@ -90,7 +97,7 @@ class EventsFeed extends React.Component {
{['All', 'Upcoming', 'Past'].map(filter => (
<FilterTab key={filter} to={`/events?show=${filter.toLowerCase()}`} data-active={show === filter.toLowerCase()}>{filter}</FilterTab>
))}
<button className="e2e-add-event-button" onClick={onCreateEvent}>Add event</button>
<AddEventButton to="#" className="e2e-add-event-button" onClick={onCreateEvent}>+ Add event</AddEventButton>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need to anymore :-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Real talk! Fixed.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 39.776% when pulling 530870e on savva-k:enhancement/add-event-styling into 2a98318 on kitos:master.

@kitos kitos merged commit 66e7ad2 into WebPurple:master Oct 12, 2017
@coveralls
Copy link

Coverage Status

Coverage remained the same at 39.776% when pulling 01c43c9 on savva-k:enhancement/add-event-styling into 2a98318 on kitos:master.

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.

None yet

3 participants