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:
@@ -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>
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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>
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user