Drop 'Cancel'

This commit is contained in:
Tom Russell 2018-11-30 09:29:16 +00:00
parent 446266b8b6
commit ff0b3bdb91

View File

@ -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>