Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds resourceId to handleSelectAllDaySlot fns slotInfo #1735

Merged
merged 1 commit into from
Aug 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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