Skip to content

Added useTheme hook#2765

Merged
mxstbr merged 2 commits into
styled-components:canaryfrom
semoal:feature/useTheme
Sep 26, 2019
Merged

Added useTheme hook#2765
mxstbr merged 2 commits into
styled-components:canaryfrom
semoal:feature/useTheme

Conversation

@semoal

@semoal semoal commented Sep 24, 2019

Copy link
Copy Markdown
Contributor

Added a simple hook to recover theme context easily

@semoal semoal mentioned this pull request Sep 24, 2019
14 tasks
@kachkaev

Copy link
Copy Markdown
Member

Related: #2340

@mxstbr mxstbr left a comment

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.

Thank you for taking the time to submit this PR, I am good with including this, seems like a sensible addition!

@probablyup any complaints?

@quantizor

Copy link
Copy Markdown
Contributor

Seems fine to me, though perhaps unnecessary since we expose ThemeContext already

@lcswillems

Copy link
Copy Markdown

I don't think it is unnecessary since it makes imports easier.

Thank you for all your great work!

@mxstbr

mxstbr commented Sep 26, 2019

Copy link
Copy Markdown
Member

I think this is a perfectly fine API addition, let's :shipit:!

@mxstbr mxstbr merged commit 972f718 into styled-components:canary Sep 26, 2019
@semoal semoal deleted the feature/useTheme branch September 26, 2019 06:50

@Michae123 Michae123 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

6 participants