From f02ea776eeac993421804dd55915c5d4c63177f3 Mon Sep 17 00:00:00 2001 From: helabbassi Date: Tue, 27 Feb 2018 21:08:56 +0100 Subject: [PATCH] rename renderCustomCheckBoxSource --- src/SelectMultiple.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/SelectMultiple.js b/src/SelectMultiple.js index ea77e05..6272626 100644 --- a/src/SelectMultiple.js +++ b/src/SelectMultiple.js @@ -28,7 +28,7 @@ export default class SelectMultiple extends Component { onSelectionsChange: PropTypes.func.isRequired, checkboxSource: sourceType, - renderCustomCheckboxSource: PropTypes.func, + renderCheckbox: PropTypes.func, selectedCheckboxSource: sourceType, renderLabel: PropTypes.func, listViewProps: PropTypes.any, @@ -133,14 +133,14 @@ export default class SelectMultiple extends Component { } = this.props const { - renderCustomCheckboxSource, + renderCheckbox, selectedCheckboxSource, selectedRowStyle, selectedCheckboxStyle, selectedLabelStyle } = this.props - if (!renderCustomCheckboxSource) { + if (!renderCheckbox) { if (row.selected) { checkboxSource = selectedCheckboxSource rowStyle = mergeStyles(styles.row, rowStyle, selectedRowStyle) @@ -156,8 +156,8 @@ export default class SelectMultiple extends Component { return ( this.onRowPress(row)}> - {renderCustomCheckboxSource - ? renderCustomCheckboxSource(row.selected) + {renderCheckbox + ? renderCheckbox(row.selected) : } {this.renderLabel(row.label, labelStyle, row.selected)}