diff options
author | 2019-02-08 15:40:32 +0100 | |
---|---|---|
committer | 2019-02-08 15:40:32 +0100 | |
commit | 54e4141ffecfdf19751ea59f47d0e9e8a67be6d5 (patch) | |
tree | 701cdee55ceb4727754db4fd90147b1ab30dd45c /packages/forms/src/button/index.tsx | |
parent | Update versions (diff) | |
download | ferdium-app-54e4141ffecfdf19751ea59f47d0e9e8a67be6d5.tar.gz ferdium-app-54e4141ffecfdf19751ea59f47d0e9e8a67be6d5.tar.zst ferdium-app-54e4141ffecfdf19751ea59f47d0e9e8a67be6d5.zip |
Add withTheme context to button
Diffstat (limited to 'packages/forms/src/button/index.tsx')
-rw-r--r-- | packages/forms/src/button/index.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/forms/src/button/index.tsx b/packages/forms/src/button/index.tsx index 90eda21e7..7a7f83dab 100644 --- a/packages/forms/src/button/index.tsx +++ b/packages/forms/src/button/index.tsx | |||
@@ -4,7 +4,7 @@ import { Theme } from '@meetfranz/theme'; | |||
4 | import classnames from 'classnames'; | 4 | import classnames from 'classnames'; |
5 | import CSS from 'csstype'; | 5 | import CSS from 'csstype'; |
6 | import React, { Component } from 'react'; | 6 | import React, { Component } from 'react'; |
7 | import injectStyle from 'react-jss'; | 7 | import injectStyle, { withTheme } from 'react-jss'; |
8 | import Loader from 'react-loader'; | 8 | import Loader from 'react-loader'; |
9 | 9 | ||
10 | import { IFormField, IWithStyle } from '../typings/generic'; | 10 | import { IFormField, IWithStyle } from '../typings/generic'; |
@@ -271,4 +271,4 @@ class ButtonComponent extends Component<IProps> { | |||
271 | } | 271 | } |
272 | } | 272 | } |
273 | 273 | ||
274 | export const Button = injectStyle(styles)(ButtonComponent); | 274 | export const Button = injectStyle(styles)(withTheme(ButtonComponent)); |