Reactive current cell selection count

This commit is contained in:
Colin Megill
2018-04-08 20:39:02 -07:00
parent 3370b4ba81
commit e6e3788160
@@ -43,9 +43,15 @@ class Expression extends React.Component {
return (
<div>
<div style={{margin: 10}}>
// <div style={{margin: 10, width: 300}}>
// There are currently 10 cells selected, click a cell set button to store them.
// </div>
<div style={{margin: 10, width: 300}}>
There are currently
{
" " +
_.filter(this.props.currentCellSelection, "__selected__").length +
" "
}
cells selected, click a cell set button to store them.
</div>
<CellSetButton
{...this.props}
eitherCellSetOneOrTwo={1}/>