1
0
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:
Alex Andreev 2020-08-21 11:31:51 +03:00
parent 112114385e
commit 9fa551a820

View File

@ -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 => ({