diff options
author | 2021-12-04 10:51:16 +0100 | |
---|---|---|
committer | 2021-12-04 10:51:16 +0100 | |
commit | 11c992b04f3cad6badf0ae86da65f490e31dd359 (patch) | |
tree | 749e63f6ba3e9bea48c186b5d8502d328edfd276 /src/components/ui/headline | |
parent | 5.6.4-nightly.24 [skip ci] (diff) | |
download | ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.tar.gz ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.tar.zst ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.zip |
chore: upgrade react-jss to latest (#2302)
Diffstat (limited to 'src/components/ui/headline')
-rw-r--r-- | src/components/ui/headline/index.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/ui/headline/index.tsx b/src/components/ui/headline/index.tsx index ea2949102..d9954c38f 100644 --- a/src/components/ui/headline/index.tsx +++ b/src/components/ui/headline/index.tsx | |||
@@ -1,11 +1,11 @@ | |||
1 | import classnames from 'classnames'; | 1 | import classnames from 'classnames'; |
2 | import { Component, createElement, ReactNode } from 'react'; | 2 | import { Component, createElement, ReactNode } from 'react'; |
3 | import injectStyle from 'react-jss'; | 3 | import injectStyle, { WithStylesProps } from 'react-jss'; |
4 | 4 | ||
5 | import { Theme } from '../../../themes'; | 5 | import { Theme } from '../../../themes'; |
6 | import { IWithStyle, Omit } from '../typings/generic'; | 6 | import { Omit } from '../typings/generic'; |
7 | 7 | ||
8 | interface IProps extends IWithStyle { | 8 | interface IProps extends WithStylesProps<typeof styles> { |
9 | level?: number; | 9 | level?: number; |
10 | className?: string; | 10 | className?: string; |
11 | children: string | ReactNode; | 11 | children: string | ReactNode; |
@@ -55,9 +55,9 @@ class HeadlineComponent extends Component<IProps> { | |||
55 | } | 55 | } |
56 | } | 56 | } |
57 | 57 | ||
58 | const Headline = injectStyle(styles)(HeadlineComponent); | 58 | const Headline = injectStyle(styles, { injectTheme: true })(HeadlineComponent); |
59 | 59 | ||
60 | const createH = (level: number) => (props: Omit<IProps, 'classes' | 'theme'>) => | 60 | const createH = (level: number) => (props: Omit<IProps, 'classes'>) => |
61 | ( | 61 | ( |
62 | <Headline level={level} {...props}> | 62 | <Headline level={level} {...props}> |
63 | {props.children} | 63 | {props.children} |