// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import { View, } from 'react-native'; import StatusBar from 'app/components/status_bar'; import Section from 'app/screens/settings/section'; import SectionItem from 'app/screens/settings/section_item'; import FormattedText from 'app/components/formatted_text'; import {changeOpacity, makeStyleSheetFromTheme} from 'app/utils/theme'; import {t} from 'app/utils/i18n'; import ClockDisplayBase from './clock_display_base'; export default class ClockDisplay extends ClockDisplayBase { render() { const {theme} = this.props; const {newMilitaryTime} = this.state; const style = getStyleSheet(theme); return (
)} action={this.setMilitaryTime} actionType='select' actionValue='false' selected={newMilitaryTime === 'false'} theme={theme} /> )} action={this.setMilitaryTime} actionType='select' actionValue='true' selected={newMilitaryTime === 'true'} theme={theme} />
); } } const getStyleSheet = makeStyleSheetFromTheme((theme) => { return { container: { flex: 1, backgroundColor: theme.centerChannelBg, }, wrapper: { backgroundColor: changeOpacity(theme.centerChannelColor, 0.06), flex: 1, paddingTop: 35, }, }; });