Drop 'Cancel'
This commit is contained in:
parent
446266b8b6
commit
ff0b3bdb91
@ -143,28 +143,14 @@ class EditForm extends Component {
|
|||||||
: null
|
: null
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
(match && this.props.slug === 'like')? // special-case for likes
|
(match && this.props.slug !== 'like')? // special-case for likes
|
||||||
<NavLink className="icon-button save" title="Done"
|
|
||||||
to={`/edit/${this.props.slug}/building/${this.props.building_id}.html`}>
|
|
||||||
Done
|
|
||||||
<SaveIcon />
|
|
||||||
</NavLink>
|
|
||||||
:
|
|
||||||
match? (
|
|
||||||
<Fragment>
|
|
||||||
<NavLink className="icon-button save" title="Save Changes"
|
<NavLink className="icon-button save" title="Save Changes"
|
||||||
onClick={this.handleSubmit}
|
onClick={this.handleSubmit}
|
||||||
to={`/edit/${this.props.slug}/building/${this.props.building_id}.html`}>
|
to={`/edit/${this.props.slug}/building/${this.props.building_id}.html`}>
|
||||||
Save
|
Save
|
||||||
<SaveIcon />
|
<SaveIcon />
|
||||||
</NavLink>
|
</NavLink>
|
||||||
<NavLink className="icon-button close-edit" title="Cancel"
|
: null
|
||||||
to={`/view/${this.props.slug}/building/${this.props.building_id}.html`}>
|
|
||||||
Cancel
|
|
||||||
<CloseIcon />
|
|
||||||
</NavLink>
|
|
||||||
</Fragment>
|
|
||||||
): null
|
|
||||||
}
|
}
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
Loading…
Reference in New Issue
Block a user