Skip to content

Commit

Permalink
PR revision round 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kieftrav committed Dec 10, 2024
1 parent ad12508 commit dfd24ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 (
<Box>
<StyledInstructionText as="legend" size="small">
Expand All @@ -59,7 +54,7 @@ function VolumetricTask({ task }) {

<TaskInput
checked={true}
disabled={subjectReadyState !== asyncStates.success}
disabled={disabled}
index={0}
label={"3D Viewer"}
labelIcon={
Expand Down

0 comments on commit dfd24ce

Please sign in to comment.