File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,16 @@ export default ({
3636 sampleTimeToComplete,
3737} ) => {
3838 const [ currentTab , setTab ] = useState ( "label" )
39+ const [ showLabelHelpPricing , setShowLabelHelpPricing ] = useState ( false )
3940 const posthog = usePosthog ( )
40- const { labelHelpEnabled } = useLabelHelp ( )
41+ const { labelHelpEnabled, totalCost } = useLabelHelp ( )
4142 const labelOnlyMode = useIsLabelOnlyMode ( )
43+
44+ useEffect ( ( ) => {
45+ if ( process . env . REACT_APP_SHOW_LABELHELP_PRICING === "true" )
46+ setShowLabelHelpPricing ( true )
47+ } , [ ] )
48+
4249 let percentComplete = 0
4350 if ( dataset . samples && dataset . samples . length > 0 ) {
4451 percentComplete =
@@ -150,7 +157,11 @@ export default ({
150157 { labelHelpEnabled && (
151158 < Tab
152159 icon = { < SupervisedUserCircleIcon /> }
153- label = "Label Help"
160+ label = {
161+ showLabelHelpPricing && totalCost
162+ ? `${ totalCost } $`
163+ : "Label Help"
164+ }
154165 value = "labelhelp"
155166 />
156167 ) }
You can’t perform that action at this time.
0 commit comments