Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

feat(superset-ui-style): export ThemeProvider and useTheme #553

Merged
merged 3 commits into from
Jun 1, 2020

Conversation

ktmud
Copy link
Contributor

@ktmud ktmud commented May 30, 2020

Export ThemeProvider, useTheme and withTheme from emotion-theming in @superset-ui/style, since they are almost always used together with supersetTheme.

This makes importing and package dependencies in Superset app (and dependent plugins) a little easier.

🏆 Enhancements

@ktmud ktmud requested a review from a team as a code owner May 30, 2020 02:05
@vercel
Copy link

vercel bot commented May 30, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/superset/superset-ui/78vtky9xs
✅ Preview: https://superset-ui-git-fork-ktmud-export-themeprovider.superset.now.sh

@vercel vercel bot temporarily deployed to Preview May 30, 2020 02:05 Inactive
@ktmud ktmud force-pushed the export-themeprovider branch from 62829aa to 89514c7 Compare May 30, 2020 02:07
@vercel vercel bot temporarily deployed to Preview May 30, 2020 02:07 Inactive
@ktmud ktmud force-pushed the export-themeprovider branch from 89514c7 to 44be3bd Compare May 30, 2020 02:10
@codecov
Copy link

codecov bot commented May 30, 2020

Codecov Report

Merging #553 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #553      +/-   ##
==========================================
+ Coverage   23.13%   23.14%   +0.01%     
==========================================
  Files         290      290              
  Lines        6783     6784       +1     
  Branches      676      676              
==========================================
+ Hits         1569     1570       +1     
  Misses       5176     5176              
  Partials       38       38              
Impacted Files Coverage Δ
...ns/plugin-chart-word-cloud/src/chart/WordCloud.tsx 0.00% <ø> (ø)
packages/superset-ui-style/src/index.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 67b5d75...6b312a3. Read the comment docs.

Export ThemeProvider, useTheme, and withTheme from emotion-theming since
they are almost always used together with supersetTheme. This makes
importing and package dependencies simpler.
Copy link

@espressoroaster espressoroaster left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@kristw kristw left a comment

Choose a reason for hiding this comment

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

lgtm. wonder if we should reexport styled as well.

@vercel vercel bot temporarily deployed to Preview June 1, 2020 18:19 Inactive
@ktmud
Copy link
Contributor Author

ktmud commented Jun 1, 2020

lgtm. wonder if we should reexport styled as well.

Done.

@ktmud ktmud merged commit f6a8949 into apache-superset:master Jun 1, 2020
@ktmud ktmud deleted the export-themeprovider branch June 1, 2020 18:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants