* RN-112 - Update the formatting of markdown block quotes * update style definitions * update per review
42 lines
1.1 KiB
JavaScript
42 lines
1.1 KiB
JavaScript
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import React, {PureComponent} from 'react';
|
|
import {
|
|
StyleSheet,
|
|
View
|
|
} from 'react-native';
|
|
|
|
import Icon from 'react-native-vector-icons/FontAwesome';
|
|
import CustomPropTypes from 'app/constants/custom_prop_types';
|
|
|
|
export default class MarkdownBlockQuote extends PureComponent {
|
|
static propTypes = {
|
|
blockStyle: CustomPropTypes.Style,
|
|
children: CustomPropTypes.Children.isRequired
|
|
};
|
|
|
|
render() {
|
|
return (
|
|
<View style={style.container}>
|
|
<View>
|
|
<Icon
|
|
name='quote-left'
|
|
style={this.props.blockStyle}
|
|
size={14}
|
|
/>
|
|
</View>
|
|
<View>
|
|
{this.props.children}
|
|
</View>
|
|
</View>
|
|
);
|
|
}
|
|
}
|
|
|
|
const style = StyleSheet.create({
|
|
container: {
|
|
flexDirection: 'row',
|
|
alignItems: 'flex-start'
|
|
}
|
|
});
|