Skip to content

Commit

Permalink
give level to slot-label hooks. closes #5516
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Jul 28, 2020
1 parent c378eeb commit 1658f88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages-premium
1 change: 1 addition & 0 deletions packages/common/src/render-hook-misc.ts
Expand Up @@ -12,6 +12,7 @@ export interface SlotLaneContentArg extends Partial<DateMeta> { // TODO: move?
export type SlotLaneMountArg = MountArg<SlotLaneContentArg>

export interface SlotLabelContentArg { // TODO: move?
level: number
time: Duration
date: Date
view: ViewApi
Expand Down
1 change: 1 addition & 0 deletions packages/timegrid/src/TimeColsSlats.tsx
Expand Up @@ -230,6 +230,7 @@ export function TimeColsAxisCell(props: TimeSlatMeta) {
createFormatter(options.slotLabelFormat)

let hookProps: SlotLabelContentArg = {
level: 0,
time: props.time,
date: dateEnv.toDate(props.date),
view: viewApi,
Expand Down

0 comments on commit 1658f88

Please sign in to comment.