diff --git a/src/grid/Cells/index.tsx b/src/grid/Cells/index.tsx index 2a80bd4..8e51458 100644 --- a/src/grid/Cells/index.tsx +++ b/src/grid/Cells/index.tsx @@ -3,20 +3,20 @@ import React, { memo } from "react"; import { KonvaGroup } from "../../@konva"; import { useTimelineContext } from "../../timeline/TimelineContext"; import GridCell from "../Cell"; -import GridCellGroup from "../CellGroup"; +// import GridCellGroup from "../CellGroup"; interface GridCellsProps { height: number; } const GridCells = ({ height }: GridCellsProps) => { - const { aboveTimeBlocks, visibleTimeBlocks } = useTimelineContext(); + const { /*aboveTimeBlocks,*/ visibleTimeBlocks } = useTimelineContext(); return ( - {aboveTimeBlocks.map((column, index) => ( + {/* {aboveTimeBlocks.map((column, index) => ( - ))} + ))} */} {visibleTimeBlocks.map((column, index) => ( ))} diff --git a/src/utils/time.ts b/src/utils/time.ts index dd39040..489cb1b 100644 --- a/src/utils/time.ts +++ b/src/utils/time.ts @@ -52,7 +52,7 @@ export const getIntervalFromInternalTimeRange = ( timezone: string | undefined ): Interval => { const tz = timezone || "system"; - const startDateTime = DateTime.fromMillis(start, { zone: tz }).startOf(resolution.unitAbove); - const endDateTime = DateTime.fromMillis(end, { zone: tz }).endOf(resolution.unitAbove); + const startDateTime = DateTime.fromMillis(start, { zone: tz }).startOf(resolution.unit); + const endDateTime = DateTime.fromMillis(end, { zone: tz }).endOf(resolution.unit); return Interval.fromDateTimes(startDateTime, endDateTime); };