mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-10 12:24:20 +01:00
fix board editor back button
This commit is contained in:
parent
2344de0881
commit
73eaff3b87
@ -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)}>
|
||||||
|
Loading…
Reference in New Issue
Block a user