Skip to content

Commit 97866fe

Browse files
authored
Merge pull request #10950 from marmelab/update-ra-scheduler-doc
[Doc] Update `<Scheduler>` documentation
2 parents 8f9b6fe + 4483250 commit 97866fe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/Scheduler.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,27 +125,27 @@ export const EventList = () => (
125125
viewPreset="hourAndDay"
126126
startDate={startOfDay(new Date())}
127127
converters={{
128-
toBryntumEvent?: (record: RaRecord) => ({
128+
toBryntumEvent: (record) => ({
129129
id: record.id,
130130
name: record.name,
131131
resourceId: record.resource_id,
132132
eventColor: record.color,
133133
startDate: new Date(record.start_at),
134134
endDate: new Date(record.end_at),
135-
});
136-
toBryntumResource?: (record: RaRecord) => ({
135+
}),
136+
toBryntumResource: (record) => ({
137137
id: record.id,
138138
name: record.name,
139139
}),
140-
toEvent?: (model: EventModel) => ({
140+
toEvent: (model) => ({
141141
id: model.id,
142142
name: model.name,
143143
resource_id: model.resourceId,
144144
start_at: model.startDate,
145145
end_at: model.endDate,
146146
color: record.eventColor,
147147
}),
148-
toResource?: (model: ResourceModel) => ({
148+
toResource: (model) => ({
149149
id: model.id,
150150
name: model.name,
151151
}),

0 commit comments

Comments
 (0)