[FIX] Automatic theme repeating (#1457)
This commit is contained in:
parent
8823734d43
commit
b93f689060
|
@ -49,6 +49,10 @@ const THEMES = [
|
|||
}
|
||||
];
|
||||
|
||||
if (supportSystemTheme()) {
|
||||
THEMES.unshift(SYSTEM_THEME);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
list: {
|
||||
paddingBottom: 18
|
||||
|
@ -76,13 +80,6 @@ class ThemeView extends React.Component {
|
|||
setTheme: PropTypes.func
|
||||
}
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
if (supportSystemTheme()) {
|
||||
THEMES.unshift(SYSTEM_THEME);
|
||||
}
|
||||
}
|
||||
|
||||
isSelected = (item) => {
|
||||
const { themePreferences } = this.props;
|
||||
const { group } = item;
|
||||
|
|
Loading…
Reference in New Issue