Skip to content

Commit

Permalink
Merge pull request #1530 from hubmapconsortium/donorButtonFix
Browse files Browse the repository at this point in the history
Donor button fix
  • Loading branch information
yuanzhou authored Jan 30, 2025
2 parents 7b90ab7 + f7f5e61 commit bdcd0c0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/src/components/uuid/result.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,19 @@ class Result extends Component {
<div className="col-sm-12 mt-2 mr-2 mb-2 text-center">
{this.props.result !== undefined &&
this.props.result.entity.entity_type === "Donor" && (
<button
className="btn btn-primary m-2"
type="button"
<Button
className="btn btn-success m-2"
variant="contained"
color="primary"
// type="Button"
onClick={() =>
this.props.onCreateNext(
this.props.result.entity
)
}
>
Register an organ from this donor
</button>
</Button>
)}
{ this.props.result !== undefined &&
this.props.result.entity.specimen_type === "organ" && (
Expand Down

0 comments on commit bdcd0c0

Please sign in to comment.