diff options
author | 2019-05-02 11:27:23 +0200 | |
---|---|---|
committer | 2019-05-02 11:27:23 +0200 | |
commit | fbff4ed90b0137088b1bb92e95f32fc1bfa7bb3e (patch) | |
tree | dfa0a6c32ce62c605bcdbf5538d9dc03725d1f88 /packages/ui/src/badge/ProBadge.tsx | |
parent | Update CHANGELOG.md (diff) | |
download | ferdium-app-fbff4ed90b0137088b1bb92e95f32fc1bfa7bb3e.tar.gz ferdium-app-fbff4ed90b0137088b1bb92e95f32fc1bfa7bb3e.tar.zst ferdium-app-fbff4ed90b0137088b1bb92e95f32fc1bfa7bb3e.zip |
Add custom recipe limitation
Diffstat (limited to 'packages/ui/src/badge/ProBadge.tsx')
-rw-r--r-- | packages/ui/src/badge/ProBadge.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/ui/src/badge/ProBadge.tsx b/packages/ui/src/badge/ProBadge.tsx index 612e23210..2dad7ef49 100644 --- a/packages/ui/src/badge/ProBadge.tsx +++ b/packages/ui/src/badge/ProBadge.tsx | |||
@@ -3,13 +3,14 @@ import classnames from 'classnames'; | |||
3 | import React, { Component } from 'react'; | 3 | import React, { Component } from 'react'; |
4 | import injectStyle from 'react-jss'; | 4 | import injectStyle from 'react-jss'; |
5 | 5 | ||
6 | import { Icon, Badge } from '../'; | 6 | import { Badge, Icon } from '../'; |
7 | import { IWithStyle } from '../typings/generic'; | 7 | import { IWithStyle } from '../typings/generic'; |
8 | 8 | ||
9 | interface IProps extends IWithStyle { | 9 | interface IProps extends IWithStyle { |
10 | badgeClasses?: string; | 10 | badgeClasses?: string; |
11 | iconClasses?: string; | 11 | iconClasses?: string; |
12 | inverted?: boolean; | 12 | inverted?: boolean; |
13 | className?: string; | ||
13 | } | 14 | } |
14 | 15 | ||
15 | const styles = (theme: Theme) => ({ | 16 | const styles = (theme: Theme) => ({ |
@@ -37,6 +38,7 @@ class ProBadgeComponent extends Component<IProps> { | |||
37 | badgeClasses, | 38 | badgeClasses, |
38 | iconClasses, | 39 | iconClasses, |
39 | inverted, | 40 | inverted, |
41 | className, | ||
40 | } = this.props; | 42 | } = this.props; |
41 | 43 | ||
42 | return ( | 44 | return ( |
@@ -46,6 +48,7 @@ class ProBadgeComponent extends Component<IProps> { | |||
46 | classes.badge, | 48 | classes.badge, |
47 | inverted && classes.invertedBadge, | 49 | inverted && classes.invertedBadge, |
48 | badgeClasses, | 50 | badgeClasses, |
51 | className, | ||
49 | ])} | 52 | ])} |
50 | > | 53 | > |
51 | <Icon | 54 | <Icon |