Skip to content

Commit

Permalink
feat: add resourceId to handleSelectAllDaySlot fns slotInfo (#1735)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaz5 committed Aug 25, 2020
1 parent e1e06b5 commit f00a516
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"./dist/react-big-calendar.js": {
"bundled": 507436,
"minified": 149016,
"gzipped": 45496
"bundled": 509547,
"minified": 149932,
"gzipped": 45769
},
"./dist/react-big-calendar.min.js": {
"bundled": 444328,
"minified": 130089,
"gzipped": 41174
"bundled": 446246,
"minified": 130919,
"gzipped": 41339
},
"dist/react-big-calendar.esm.js": {
"bundled": 174497,
"minified": 83179,
"gzipped": 20739,
"bundled": 176376,
"minified": 84316,
"gzipped": 21023,
"treeshaked": {
"rollup": {
"code": 60400,
"import_statements": 1578
"code": 60196,
"import_statements": 1590
},
"webpack": {
"code": 64923
"code": 64714
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/BackgroundCells.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ class BackgroundCells extends React.Component {
action,
bounds,
box,
resourceId: this.props.resourceId,
})
}
}
Expand All @@ -183,6 +184,7 @@ BackgroundCells.propTypes = {
range: PropTypes.arrayOf(PropTypes.instanceOf(Date)),
rtl: PropTypes.bool,
type: PropTypes.string,
resourceId: PropTypes.any,
}

export default BackgroundCells
1 change: 1 addition & 0 deletions src/DateContentRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ class DateContentRow extends React.Component {
onSelectSlot={this.handleSelectSlot}
components={components}
longPressThreshold={longPressThreshold}
resourceId={resourceId}
/>

<div className="rbc-row-content">
Expand Down
1 change: 1 addition & 0 deletions src/TimeGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export default class TimeGrid extends Component {
start: slots[0],
end: slots[slots.length - 1],
action: slotInfo.action,
resourceId: slotInfo.resourceId,
})
}

Expand Down

0 comments on commit f00a516

Please sign in to comment.