Set theme as @computed value

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2020-08-21 11:31:51 +03:00
1 parent 112114385e
commit 9fa551a820
1 file changed
+3 -1
+3 -1
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 => ({