diff options
Diffstat (limited to 'packages/ui/src/headline')
-rw-r--r-- | packages/ui/src/headline/index.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/ui/src/headline/index.tsx b/packages/ui/src/headline/index.tsx index bf3d4418c..b534a6298 100644 --- a/packages/ui/src/headline/index.tsx +++ b/packages/ui/src/headline/index.tsx | |||
@@ -1,5 +1,5 @@ | |||
1 | import classnames from 'classnames'; | 1 | import classnames from 'classnames'; |
2 | import React, { Component } from 'react'; | 2 | import { Component, createElement, ReactNode } from 'react'; |
3 | import injectStyle from 'react-jss'; | 3 | import injectStyle from 'react-jss'; |
4 | 4 | ||
5 | import { Theme } from '../../../theme'; | 5 | import { Theme } from '../../../theme'; |
@@ -8,7 +8,7 @@ import { IWithStyle, Omit } from '../typings/generic'; | |||
8 | interface IProps extends IWithStyle { | 8 | interface IProps extends IWithStyle { |
9 | level?: number; | 9 | level?: number; |
10 | className?: string; | 10 | className?: string; |
11 | children: string | React.ReactNode; | 11 | children: string | ReactNode; |
12 | id?: string; | 12 | id?: string; |
13 | } | 13 | } |
14 | 14 | ||
@@ -39,7 +39,7 @@ class HeadlineComponent extends Component<IProps> { | |||
39 | render() { | 39 | render() { |
40 | const { classes, level, className, children, id } = this.props; | 40 | const { classes, level, className, children, id } = this.props; |
41 | 41 | ||
42 | return React.createElement( | 42 | return createElement( |
43 | `h${level}`, | 43 | `h${level}`, |
44 | { | 44 | { |
45 | id, | 45 | id, |