Skip to content

Commit

Permalink
#10 Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsobspinto committed Mar 26, 2021
1 parent 2a416f5 commit ff0c68f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
4 changes: 1 addition & 3 deletions geppetto.js/geppetto-ui/src/dicom-viewer/DicomViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,9 +813,7 @@ class DicomViewer extends Component {
}
}

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


DicomViewer.propTypes = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,27 @@ import Loader from "@geppettoengine/geppetto-ui/loader/Loader";

export default class DicomViewerExample extends Component {
constructor (props) {
super(props);
this.state = {ready: true};
this.onLoaded = this.onLoaded.bind(this)
super(props);
this.state = { ready: true };
this.onLoaded = this.onLoaded.bind(this)

}

componentDidMount() {
this.setState({
ready: false
});
componentDidMount () {
this.setState({ ready: false });
}

onLoaded(){
this.setState({
ready: true
});
onLoaded (){
this.setState({ ready: true });
}

render () {
const data
= 'https://s3.amazonaws.com/patient-hm-august-2017/MRI/IN+SITU+2008+MPRAGE+1MM-ISO/IN-SITU-2008-MPRAGE-1MM-ISO-ALT2.nii.gz';

const {ready} = this.state
const { ready } = this.state

return ready? (
return ready ? (
<div
style={{
position: 'relative',
Expand All @@ -48,6 +44,6 @@ export default class DicomViewerExample extends Component {
onLoaded={this.onLoaded}
/>
</div>
): <Loader/>
) : <Loader/>
}
}

0 comments on commit ff0c68f

Please sign in to comment.