Skip to content

Commit

Permalink
[MM-42533] Fix hidden custom theme (mattermost#6054)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramirezjag00 authored Mar 17, 2022
1 parent 23f3fb1 commit ca6f597
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/screens/settings/theme/__snapshots__/theme.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Theme should match snapshot 1`] = `
<View
<ScrollView
style={
Object {
"flex": 1,
Expand Down Expand Up @@ -390,5 +390,5 @@ exports[`Theme should match snapshot 1`] = `
/>
</View>
</View>
</View>
</ScrollView>
`;
5 changes: 3 additions & 2 deletions app/screens/settings/theme/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import {intlShape} from 'react-intl';
import {Text, View} from 'react-native';
import {ScrollView} from 'react-native-gesture-handler';
import {SafeAreaView} from 'react-native-safe-area-context';

import FormattedText from '@components/formatted_text';
Expand Down Expand Up @@ -112,7 +113,7 @@ export default class Theme extends React.PureComponent {
const {customTheme} = this.state;
const style = getStyleSheet(theme);
return (
<View style={style.container}>
<ScrollView style={style.container}>
<StatusBar/>
<View style={style.wrapper}>
<View style={style.tilesContainer}>
Expand All @@ -132,7 +133,7 @@ export default class Theme extends React.PureComponent {
</SafeAreaView>
}
</View>
</View>
</ScrollView>
);
}
}
Expand Down

0 comments on commit ca6f597

Please sign in to comment.