Skip to content

Commit

Permalink
Prefer ThemeProvider<ThemeType>
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 24, 2019
1 parent db5c04a commit e0810a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/styles/advanced/ThemeNesting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function DeepChild() {
export default function ThemeNesting() {
return (
<div>
<ThemeProvider
<ThemeProvider<MyTheme>
theme={{
background: 'linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)',
boxShadow: '0 3px 5px 2px rgba(255, 105, 135, .3)',
Expand All @@ -43,7 +43,7 @@ export default function ThemeNesting() {
<DeepChild />
<br />
<br />
<ThemeProvider
<ThemeProvider<MyTheme>
theme={outerTheme => ({
...outerTheme,
background: 'linear-gradient(45deg, #2196F3 30%, #21CBF3 90%)',
Expand Down

0 comments on commit e0810a6

Please sign in to comment.