mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-10 12:24:20 +01:00
remove useless button
This commit is contained in:
parent
c81dd42bf8
commit
032299b7db
@ -56,13 +56,6 @@ module.exports = function (boardsAPI) {
|
|||||||
this.setState({ init: true })
|
this.setState({ init: true })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
newProfile: function () {
|
|
||||||
var boards = this.state.api
|
|
||||||
boards.createProfile({
|
|
||||||
name: 'Default Name',
|
|
||||||
description: 'Default Profile Description'
|
|
||||||
})
|
|
||||||
},
|
|
||||||
linkToEditor: function () {
|
linkToEditor: function () {
|
||||||
var uid = this.props.params.userid
|
var uid = this.props.params.userid
|
||||||
if (uid === 'me' && this.state.id) uid = this.state.id
|
if (uid === 'me' && this.state.id) uid = this.state.id
|
||||||
@ -72,7 +65,6 @@ module.exports = function (boardsAPI) {
|
|||||||
<div className="iconbar">
|
<div className="iconbar">
|
||||||
<Link className="nounderline" to="/edit/profile"><Icon name="edit" className="fa-2x light"/></Link>
|
<Link className="nounderline" to="/edit/profile"><Icon name="edit" className="fa-2x light"/></Link>
|
||||||
</div>
|
</div>
|
||||||
<button className="new-profile button button-primary" onClick={this.newProfile}>New Profile</button>
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user