Skip to content

Commit

Permalink
add ordinalBin, dyad census, tie strength census
Browse files Browse the repository at this point in the history
  • Loading branch information
jthrilly committed Dec 12, 2023
1 parent 3771da8 commit e6855fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
18 changes: 4 additions & 14 deletions lib/interviewer/components/MultiNodeBucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ const EnhancedNode = DragSource(Node);

const MultiNodeBucket = (props) => {
const {
nodes,
nodes = [],
listId,
sortOrder,
nodeColor,
label,
itemType,
sortOrder = [],
label = () => (''),
itemType = 'NODE',
} = props;

const [stagger, setStagger] = useState(true);
Expand Down Expand Up @@ -76,7 +75,6 @@ const MultiNodeBucket = (props) => {
delay={stagger ? index * 0.05 : 0}
>
<EnhancedNode
color={nodeColor}
inactive={index !== 0}
allowDrag={index === 0}
label={`${label(node)}`}
Expand All @@ -100,12 +98,4 @@ MultiNodeBucket.propTypes = {
sortOrder: PropTypes.array,
};

MultiNodeBucket.defaultProps = {
nodes: [],
nodeColor: '',
label: () => (''),
itemType: 'NODE',
sortOrder: [],
};

export default MultiNodeBucket;
2 changes: 1 addition & 1 deletion lib/interviewer/containers/OrdinalBins.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import color from 'color';
import { MarkdownLabel } from '~/lib/ui/components/Fields';
import { getCSSVariableAsString } from '~/lib/ui/utils/CSSVariables';
import { entityAttributesProperty, entityPrimaryKeyProperty } from '@codaco/shared-consts';
import { makeNetworkNodesForType, makeGetVariableOptions, makeGetPromptVariable, getNetworkNodesForType } from '../selectors/interface';
import { makeGetVariableOptions, getNetworkNodesForType } from '../selectors/interface';
import { actionCreators as sessionActions } from '../ducks/modules/session';
import NodeList from '../components/NodeList';
import { MonitorDragSource } from '../behaviours/DragAndDrop';
Expand Down

0 comments on commit e6855fa

Please sign in to comment.