Browse Source

Update title to make it clear bike is stolen.

feature/bike-tracking
Drew Larson 8 years ago
parent
commit
152b268d52
  1. 9
      bikeshop_project/assets/js/bikes/components/BikeModal/index.jsx

9
bikeshop_project/assets/js/bikes/components/BikeModal/index.jsx

@ -43,9 +43,16 @@ export default class BikeModal extends React.Component {
/>,
];
const title = this.state.bike && this.state.bike.stolen ?
(<div>
<h3>Edit Bike</h3>
<h4>STOLEN</h4>
</div>) :
<h3>Edit Bike</h3>;
return (<div>
<Dialog
title="Edit Bike"
title={title}
actions={actions}
modal
open={this.state.open}

Loading…
Cancel
Save