Skip to content

Commit

Permalink
Clean up based on PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
kieftrav committed Dec 9, 2024
1 parent 5e4ef57 commit 28b286a
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions app/classifier/tasks/volumetric/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ import React from "react";
import GenericTaskEditor from "../generic-editor";

export default class VolumetricTask extends React.Component {
constructor(props) {
super(props);
}
render() {
return <div>{"VolumetricTask Tool"}</div>;
return <div>This is a placeholder for the Volumetric Task, which is only visible in the FEM Classifier</div>;
}
}

Expand All @@ -21,12 +18,13 @@ VolumetricTask.getDefaultTask = () => ({

VolumetricTask.getTaskText = (task) => task.instruction;

VolumetricTask.getDefaultAnnotation = () => ({ _toolIndex: 0, value: [] });
VolumetricTask.getDefaultAnnotation = () => ({});

VolumetricTask.defaultProps = {
showRequiredNotice: false,
task: {
help: "",
required: false,
type: "volumetric",
instruction: "Describe how to use this tool",
},
Expand All @@ -41,10 +39,6 @@ VolumetricTask.propTypes = {
help: PropTypes.string,
instruction: PropTypes.string,
required: PropTypes.bool,
tools: PropTypes.array,
type: PropTypes.string,
}),
workflow: PropTypes.shape({
tasks: PropTypes.object,
}),
})
};

0 comments on commit 28b286a

Please sign in to comment.