Improving statuses, adding a composer drawer, which doesn't work yet
This commit is contained in:
parent
f5e1127894
commit
44e57f64dd
14 changed files with 138 additions and 12 deletions
22
app/assets/javascripts/components/components/button.jsx
Normal file
22
app/assets/javascripts/components/components/button.jsx
Normal file
|
@ -0,0 +1,22 @@
|
|||
const Button = React.createClass({
|
||||
propTypes: {
|
||||
text: React.PropTypes.string.isRequired,
|
||||
onClick: React.PropTypes.func
|
||||
},
|
||||
|
||||
handleClick (e) {
|
||||
e.preventDefault();
|
||||
this.props.onClick();
|
||||
},
|
||||
|
||||
render () {
|
||||
return (
|
||||
<a href='#' onClick={this.handleClick} style={{ display: 'inline-block', position: 'relative', boxSizing: 'border-box', textAlign: 'center', border: '10px none', backgroundColor: '#2b90d9', color: '#fff', fontSize: '14px', fontWeight: '500', letterSpacing: '0', textTransform: 'uppercase', padding: '0 16px', height: '36px', cursor: 'pointer', lineHeight: '36px', borderRadius: '4px', textDecoration: 'none' }}>
|
||||
{this.props.text}
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
export default Button;
|
Loading…
Add table
Add a link
Reference in a new issue