* Use Compass icons * Update ChannelInfo and AdvancedSettings * Fix search modifiers * Fix Autocomplete item * Remove VectorIcon component * Unlink react-native-vector-icons * Revert ProgressiveImage changes * Update Mark as Unread icon * Apply review suggestion * Replace extension icons * Update video control button style * Replace (un)flag with (un)save * Replace (un)flag with (un)save - take 2 * Use bookmark-outline icon Co-authored-by: Miguel Alatzar <miguel@Miguels-MacBook-Pro.local>
57 lines
1.4 KiB
JavaScript
57 lines
1.4 KiB
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import React, {PureComponent} from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import {
|
|
StyleSheet,
|
|
View,
|
|
} from 'react-native';
|
|
|
|
import CompassIcon from '@components/compass_icon';
|
|
import CustomPropTypes from '@constants/custom_prop_types';
|
|
|
|
export default class MarkdownBlockQuote extends PureComponent {
|
|
static propTypes = {
|
|
continue: PropTypes.bool,
|
|
iconStyle: CustomPropTypes.Style,
|
|
children: CustomPropTypes.Children.isRequired,
|
|
};
|
|
|
|
render() {
|
|
let icon;
|
|
if (!this.props.continue) {
|
|
icon = (
|
|
<CompassIcon
|
|
name='format-quote-open'
|
|
style={this.props.iconStyle}
|
|
size={20}
|
|
/>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<View style={style.container}>
|
|
<View style={style.icon}>
|
|
{icon}
|
|
</View>
|
|
<View style={style.childContainer}>
|
|
{this.props.children}
|
|
</View>
|
|
</View>
|
|
);
|
|
}
|
|
}
|
|
|
|
const style = StyleSheet.create({
|
|
container: {
|
|
alignItems: 'flex-start',
|
|
flexDirection: 'row',
|
|
},
|
|
childContainer: {
|
|
flex: 1,
|
|
},
|
|
icon: {
|
|
width: 23,
|
|
},
|
|
});
|