Skip to content

Commit f00a516

Browse files
authored
feat: add resourceId to handleSelectAllDaySlot fns slotInfo (jquense#1735)
1 parent e1e06b5 commit f00a516

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

.size-snapshot.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
22
"./dist/react-big-calendar.js": {
3-
"bundled": 507436,
4-
"minified": 149016,
5-
"gzipped": 45496
3+
"bundled": 509547,
4+
"minified": 149932,
5+
"gzipped": 45769
66
},
77
"./dist/react-big-calendar.min.js": {
8-
"bundled": 444328,
9-
"minified": 130089,
10-
"gzipped": 41174
8+
"bundled": 446246,
9+
"minified": 130919,
10+
"gzipped": 41339
1111
},
1212
"dist/react-big-calendar.esm.js": {
13-
"bundled": 174497,
14-
"minified": 83179,
15-
"gzipped": 20739,
13+
"bundled": 176376,
14+
"minified": 84316,
15+
"gzipped": 21023,
1616
"treeshaked": {
1717
"rollup": {
18-
"code": 60400,
19-
"import_statements": 1578
18+
"code": 60196,
19+
"import_statements": 1590
2020
},
2121
"webpack": {
22-
"code": 64923
22+
"code": 64714
2323
}
2424
}
2525
}

src/BackgroundCells.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ class BackgroundCells extends React.Component {
160160
action,
161161
bounds,
162162
box,
163+
resourceId: this.props.resourceId,
163164
})
164165
}
165166
}
@@ -183,6 +184,7 @@ BackgroundCells.propTypes = {
183184
range: PropTypes.arrayOf(PropTypes.instanceOf(Date)),
184185
rtl: PropTypes.bool,
185186
type: PropTypes.string,
187+
resourceId: PropTypes.any,
186188
}
187189

188190
export default BackgroundCells

src/DateContentRow.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ class DateContentRow extends React.Component {
152152
onSelectSlot={this.handleSelectSlot}
153153
components={components}
154154
longPressThreshold={longPressThreshold}
155+
resourceId={resourceId}
155156
/>
156157

157158
<div className="rbc-row-content">

src/TimeGrid.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export default class TimeGrid extends Component {
101101
start: slots[0],
102102
end: slots[slots.length - 1],
103103
action: slotInfo.action,
104+
resourceId: slotInfo.resourceId,
104105
})
105106
}
106107

0 commit comments

Comments
 (0)