Skip to content

refactor(styles): IssueDescription component styles update#563

Merged
housseindjirdeh merged 2 commits intogitpoint:masterfrom
josenaranjo:refactor-issue-description-component
Oct 26, 2017
Merged

refactor(styles): IssueDescription component styles update#563
housseindjirdeh merged 2 commits intogitpoint:masterfrom
josenaranjo:refactor-issue-description-component

Conversation

@josenaranjo
Copy link
Copy Markdown
Contributor

@josenaranjo josenaranjo commented Oct 23, 2017

Migrating StyleSheet styles to styled components

Related #532

Migrating StyleSheet styles to styled components

532
Copy link
Copy Markdown
Member

@alejandronanez alejandronanez left a comment

Choose a reason for hiding this comment

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

LGTM.

padding-bottom: 10;
`;

const StateBadgeStyled = styled(StateBadge)`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🤔 This is failing the test for some reason.

Cannot create styled-component for component: undefined

Copy link
Copy Markdown
Member

@andrewda andrewda Oct 24, 2017

Choose a reason for hiding this comment

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

Actually, why are we styling the StateBadge at all here? Seems a bit weird. Shouldn't this all be done in the component?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Couldn't agree more @andrewda . I reverted these styles to use StyleSheet while we refactor StateBadge component, so it doesn't require any style props.

StateBadge component will have some styles trough props. Revert to use StyleSheet in this case.

gitpoint#532
@coveralls
Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 213459e on josenaranjo:refactor-issue-description-component into ** on gitpoint:master**.

Copy link
Copy Markdown
Member

@housseindjirdeh housseindjirdeh left a comment

Choose a reason for hiding this comment

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

cheers thanks for this @josenaranjo 🎉

@housseindjirdeh housseindjirdeh merged commit 6567aa3 into gitpoint:master Oct 26, 2017
@josenaranjo josenaranjo deleted the refactor-issue-description-component branch October 26, 2017 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants