@@ -2,7 +2,6 @@ import cx from 'classnames'
22import React , { useCallback , useContext , useMemo } from 'react'
33import { useSelector } from 'react-redux'
44import { EXPERIMENT_WORKSPACE_ID } from 'dvc/src/cli/dvc/contract'
5- import { isQueued , isRunning } from 'dvc/src/experiments/webview/contract'
65import { FirstCell , CellWrapper } from './Cell'
76import { RowContextMenu } from './RowContextMenu'
87import styles from '../styles.module.scss'
@@ -24,9 +23,8 @@ export const RowContent: React.FC<
2423 const changes = useSelector (
2524 ( state : ExperimentsState ) => state . tableData . changes
2625 )
27- const { getVisibleCells, original, index, getIsExpanded, subRows } = row
28- const { branch, displayColor, error, starred, id, status, selected } =
29- original
26+ const { getVisibleCells, original, getIsExpanded, subRows } = row
27+ const { branch, displayColor, error, starred, id } = original
3028 const [ firstCell , ...cells ] = getVisibleCells ( )
3129 const isWorkspace = id === EXPERIMENT_WORKSPACE_ID
3230 const changesIfWorkspace = isWorkspace ? changes : undefined
@@ -68,11 +66,6 @@ export const RowContent: React.FC<
6866 }
6967 } , [ subRows , selectedRows ] )
7068
71- const running = isRunning ( status )
72- const queued = isQueued ( status )
73- const unselected = selected === false
74- const isOdd = index % 2 !== 0 && ! isRowSelected
75-
7669 return (
7770 < ContextMenu content = { < RowContextMenu row = { row } /> } >
7871 < tr
@@ -82,14 +75,6 @@ export const RowContent: React.FC<
8275 styles . bodyRow ,
8376 styles . row ,
8477 {
85- [ styles . runningExperiment ] : running ,
86- [ styles . queuedExperiment ] : queued ,
87- [ styles . unselectedExperiment ] : ! running && ! queued && unselected ,
88- [ styles . normalExperiment ] : ! running && ! queued && ! unselected ,
89- [ styles . oddRow ] : isOdd ,
90- [ styles . evenRow ] : ! isOdd ,
91- [ styles . workspaceRow ] : isWorkspace ,
92- [ styles . normalRow ] : ! isWorkspace ,
9378 [ styles . rowSelected ] : isRowSelected
9479 }
9580 ) }
@@ -100,7 +85,7 @@ export const RowContent: React.FC<
10085 < FirstCell
10186 cell = { firstCell }
10287 changesIfWorkspace = { ! ! changesIfWorkspace ?. length }
103- bulletColor = { displayColor }
88+ plotColor = { displayColor }
10489 starred = { starred }
10590 isRowSelected = { isRowSelected }
10691 showSubRowStates = { ! getIsExpanded ( ) && ! isWorkspace }
0 commit comments