Skip to content

Commit

Permalink
#10 Rename onLoad to onLoaded
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsobspinto committed Mar 26, 2021
1 parent a287b1d commit 2a416f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions geppetto.js/geppetto-ui/src/dicom-viewer/DicomViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class DicomViewer extends Component {

_this.configureEvents();
_this.ready = true;
_this.props.onLoad()
_this.props.onLoaded()
})
.catch(function (error) {
window.console.log('oops... something went wrong...');
Expand Down Expand Up @@ -814,7 +814,7 @@ class DicomViewer extends Component {
}

DicomViewer.defaultProps = {
onLoad: () => {},
onLoaded: () => {},
};


Expand Down Expand Up @@ -858,7 +858,7 @@ DicomViewer.propTypes = {
/**
* Callback function to be called after load is complete
*/
onLoad: PropTypes.func,
onLoaded: PropTypes.func,
};

export default withStyles(styles)(DicomViewer);
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default class DicomViewerExample extends Component {
constructor (props) {
super(props);
this.state = {ready: true};
this.onLoad = this.onLoad.bind(this)
this.onLoaded = this.onLoaded.bind(this)

}

Expand All @@ -16,7 +16,7 @@ export default class DicomViewerExample extends Component {
});
}

onLoad(){
onLoaded(){
this.setState({
ready: true
});
Expand Down Expand Up @@ -45,7 +45,7 @@ export default class DicomViewerExample extends Component {
onShiftClick="goToPoint"
onCtrlClick="togglMode"
showDownloadButton={true}
onLoad={this.onLoad}
onLoaded={this.onLoaded}
/>
</div>
): <Loader/>
Expand Down

0 comments on commit 2a416f5

Please sign in to comment.