1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-01-09 12:19:49 +01:00

fix board editor back button

This commit is contained in:
Enrico Fasoli 2018-02-09 14:53:17 +01:00
parent 2344de0881
commit 73eaff3b87
No known key found for this signature in database
GPG Key ID: 1238873C5F27DB4D

View File

@ -1,6 +1,7 @@
import React, { Component } from 'react' import React, { Component } from 'react'
import { Icon, Container, Card, Form, Button } from 'semantic-ui-react' import { Icon, Container, Card, Form, Button } from 'semantic-ui-react'
import { Link } from 'react-router-dom' import { Link } from 'react-router-dom'
import { shortenAddress } from '../utils/orbitdb';
export default class BoardEditorForm extends Component { export default class BoardEditorForm extends Component {
constructor(props){ constructor(props){
@ -54,7 +55,7 @@ export default class BoardEditorForm extends Component {
</Form.Field> </Form.Field>
</Form.Group> </Form.Group>
<div className="ui two buttons"> <div className="ui two buttons">
<Button as={Link} to={'/'}> <Button as={Link} to={shortenAddress(address)}>
<Icon name="arrow left"/> Back <Icon name="arrow left"/> Back
</Button> </Button>
<Button type="submit" onClick={() => updateBoardMetadata(address, this.state)}> <Button type="submit" onClick={() => updateBoardMetadata(address, this.state)}>