From 28b286a40df6a3beb653356b21f52750da03c298 Mon Sep 17 00:00:00 2001 From: kieftrav Date: Mon, 9 Dec 2024 10:57:30 -0600 Subject: [PATCH] Clean up based on PR feedback --- app/classifier/tasks/volumetric/index.jsx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/app/classifier/tasks/volumetric/index.jsx b/app/classifier/tasks/volumetric/index.jsx index abd159c195..b0fcd7b706 100644 --- a/app/classifier/tasks/volumetric/index.jsx +++ b/app/classifier/tasks/volumetric/index.jsx @@ -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
{"VolumetricTask Tool"}
; + return
This is a placeholder for the Volumetric Task, which is only visible in the FEM Classifier
; } } @@ -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", }, @@ -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, - }), + }) };