mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Set theme as @computed value
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
112114385e
commit
9fa551a820
@ -38,7 +38,9 @@ export class Select extends React.Component<SelectProps> {
|
||||
menuPortalTarget: document.body,
|
||||
}
|
||||
|
||||
private theme = this.props.themeName || themeStore.activeTheme.type;
|
||||
@computed get theme() {
|
||||
return this.props.themeName || themeStore.activeTheme.type;
|
||||
}
|
||||
|
||||
private styles: Styles = {
|
||||
menuPortal: styles => ({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user