From dfd24ced876edee9106385785fa37d6b248aae62 Mon Sep 17 00:00:00 2001 From: kieftrav Date: Tue, 10 Dec 2024 08:19:10 -0600 Subject: [PATCH] PR revision round 2 --- .../components/TaskInputLabel/TaskInputLabel.js | 2 -- .../volumetric/components/VolumetricTask.js | 11 +++-------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/packages/lib-classifier/src/plugins/tasks/components/TaskInput/components/TaskInputLabel/TaskInputLabel.js b/packages/lib-classifier/src/plugins/tasks/components/TaskInput/components/TaskInputLabel/TaskInputLabel.js index f1c9edae0a..37baf8d832 100644 --- a/packages/lib-classifier/src/plugins/tasks/components/TaskInput/components/TaskInputLabel/TaskInputLabel.js +++ b/packages/lib-classifier/src/plugins/tasks/components/TaskInput/components/TaskInputLabel/TaskInputLabel.js @@ -16,8 +16,6 @@ const StyledTaskInputLabelWrapper = styled.span` const StyledText = styled(Text)` align-content: center; - display: block; - margin: 1em 0; padding-left: 15px; padding-right: 15px; diff --git a/packages/lib-classifier/src/plugins/tasks/experimental/volumetric/components/VolumetricTask.js b/packages/lib-classifier/src/plugins/tasks/experimental/volumetric/components/VolumetricTask.js index 8536b96b5c..b77a3444df 100644 --- a/packages/lib-classifier/src/plugins/tasks/experimental/volumetric/components/VolumetricTask.js +++ b/packages/lib-classifier/src/plugins/tasks/experimental/volumetric/components/VolumetricTask.js @@ -1,13 +1,11 @@ -import asyncStates from '@zooniverse/async-states' import { Box, Text } from "grommet" import { Blank } from "grommet-icons" import InputStatus from "../../../components/InputStatus" import { Markdownz } from "@zooniverse/react-components" -import { MobXProviderContext, observer } from "mobx-react" +import { observer } from "mobx-react" import PropTypes from "prop-types" import styled from "styled-components" import TaskInput from "../../../components/TaskInput" -import { useContext } from 'react' // Note: ANNOTATION_COUNT will be refactored in next PR to use MobX Annotations const ANNOTATION_COUNT = 3 @@ -42,10 +40,7 @@ const StyledToolIcon = styled.div` } ` -function VolumetricTask({ task }) { - const stores = useContext(MobXProviderContext) - const subjectReadyState = stores.classifierStore?.subjectViewer?.loadingState ?? asyncStates.loading - +function VolumetricTask({ disabled = false, task }) { return ( @@ -59,7 +54,7 @@ function VolumetricTask({ task }) {