-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create Volumetric Task * Clean up based on PR feedback
- Loading branch information
Showing
5 changed files
with
58 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import PropTypes from "prop-types"; | ||
import React from "react"; | ||
import GenericTaskEditor from "../generic-editor"; | ||
|
||
export default class VolumetricTask extends React.Component { | ||
render() { | ||
return <div>This is a placeholder for the Volumetric Task, which is only visible in the FEM Classifier</div>; | ||
} | ||
} | ||
|
||
VolumetricTask.Editor = GenericTaskEditor; | ||
|
||
VolumetricTask.getDefaultTask = () => ({ | ||
help: "", | ||
instruction: "Describe how to use this tool", | ||
type: "volumetric", | ||
}); | ||
|
||
VolumetricTask.getTaskText = (task) => task.instruction; | ||
|
||
VolumetricTask.getDefaultAnnotation = () => ({ value: [] }); | ||
|
||
VolumetricTask.defaultProps = { | ||
showRequiredNotice: false, | ||
task: { | ||
help: "", | ||
required: false, | ||
type: "volumetric", | ||
instruction: "Describe how to use this tool", | ||
}, | ||
workflow: { | ||
tasks: [], | ||
}, | ||
}; | ||
|
||
VolumetricTask.propTypes = { | ||
showRequiredNotice: PropTypes.bool, | ||
task: PropTypes.shape({ | ||
help: PropTypes.string, | ||
instruction: PropTypes.string, | ||
required: PropTypes.bool, | ||
type: PropTypes.string, | ||
}) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters