* Fixed copyright date * Removed unnecessary components folder from channel scene * Added initial version of post textbox * Moved getTheme into a proper selector * Moved ChannelHeader into its own component * Flipped post list so that the most recent posts appear at the bottom * Moved post textbox value into redux view store * Switched new components from PureRenderMixin to React.PureComponent
40 lines
2.1 KiB
JavaScript
40 lines
2.1 KiB
JavaScript
// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import React from 'react';
|
|
import Svg, {G, Path} from 'react-native-svg';
|
|
|
|
export default class PaperClipIcon extends React.Component {
|
|
static propTypes = {
|
|
width: React.PropTypes.number.isRequired,
|
|
height: React.PropTypes.number.isRequired,
|
|
color: React.PropTypes.string.isRequired
|
|
};
|
|
|
|
setNativeProps = (nativeProps) => {
|
|
if (this.root) {
|
|
this.root.setNativeProps(nativeProps);
|
|
}
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<Svg
|
|
width={this.props.width}
|
|
height={this.props.height}
|
|
x='0'
|
|
y='0'
|
|
viewBox='0 0 48 48'
|
|
enableBackground='new 0 0 48 48'
|
|
space='preserve'
|
|
>
|
|
<G>
|
|
<Path
|
|
d='M43.922,6.653c-2.643-2.644-6.201-4.107-9.959-4.069c-3.774,0.019-7.32,1.497-9.983,4.161l-12.3,12.3l-8.523,8.521 c-4.143,4.144-4.217,10.812-0.167,14.862c1.996,1.996,4.626,2.989,7.277,2.989c2.73,0,5.482-1.055,7.583-3.156l15.547-15.545 c0.002-0.002,0.002-0.004,0.004-0.005l5.358-5.358c1.394-1.393,2.176-3.24,2.201-5.2c0.026-1.975-0.716-3.818-2.09-5.192 c-2.834-2.835-7.496-2.787-10.394,0.108L9.689,29.857c-0.563,0.563-0.563,1.474,0,2.036c0.281,0.28,0.649,0.421,1.018,0.421 c0.369,0,0.737-0.141,1.018-0.421l18.787-18.788c1.773-1.774,4.609-1.824,6.322-0.11c0.82,0.82,1.263,1.928,1.247,3.119 c-0.017,1.205-0.497,2.342-1.357,3.201l-5.55,5.551c-0.002,0.002-0.002,0.004-0.004,0.005L15.814,40.225 c-3.02,3.02-7.86,3.094-10.789,0.167c-2.928-2.929-2.854-7.77,0.167-10.791l0.958-0.958c0.001-0.002,0.004-0.002,0.005-0.004 L26.016,8.78c2.123-2.124,4.951-3.303,7.961-3.317c2.998,0.02,5.814,1.13,7.91,3.226c4.35,4.351,4.309,11.472-0.093,15.873 L25.459,40.895c-0.563,0.562-0.563,1.473,0,2.035c0.281,0.281,0.65,0.422,1.018,0.422c0.369,0,0.737-0.141,1.018-0.422 L43.83,26.596C49.354,21.073,49.395,12.126,43.922,6.653z'
|
|
fill={this.props.color}
|
|
/>
|
|
</G>
|
|
</Svg>
|
|
);
|
|
}
|
|
}
|