0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-09 09:22:38 +00:00

UPdating the homebrew editor with new snippet bar

This commit is contained in:
Scott Tolksdorf
2016-05-05 08:36:33 -04:00
parent 133dd7c144
commit 4139a8ee12
8 changed files with 137 additions and 46 deletions

View File

@@ -19,9 +19,11 @@ var Navbar = React.createClass({
<Nav.item>v1.5.0</Nav.item>
</Nav.section>
<Nav.section>
{this.props.children}
</Nav.section>
</Nav.base>
}
});

View File

@@ -15,7 +15,7 @@ var RedditShare = React.createClass({
getDefaultProps: function() {
return {
brew : {
desc : '',
title : '',
sharedId : '',
text : ''
}
@@ -30,7 +30,7 @@ var RedditShare = React.createClass({
handleClick : function(){
var url = [
MAIN_URL,
'title=' + encodeURIComponent(this.props.brew.desc ? this.props.brew.desc : 'Check out my brew!'),
'title=' + encodeURIComponent(this.props.brew.title ? this.props.brew.title : 'Check out my brew!'),
'text=' + encodeURIComponent(this.props.brew.text)
@@ -42,7 +42,7 @@ var RedditShare = React.createClass({
render : function(){
return <Nav.item icon='fa-reddit' color='red' onClick={this.handleClick}>
return <Nav.item icon='fa-reddit-alien' color='red' onClick={this.handleClick}>
share on reddit
</Nav.item>
},