Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Inbal-Tish committed Dec 20, 2023
2 parents 47128fa + fbbdbba commit cbed31f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/timeline/Timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ export interface TimelineProps {
* The left inset of the timeline calendar (sidebar width), default is 72
*/
timelineLeftInset?: number;
/** Identifier for testing */
testID?: string;
}

const Timeline = (props: TimelineProps) => {
Expand All @@ -139,7 +141,8 @@ const Timeline = (props: TimelineProps) => {
unavailableHoursColor,
eventTapped,
numberOfDays = 1,
timelineLeftInset = 0
timelineLeftInset = 0,
testID,
} = props;

const pageDates = useMemo(() => {
Expand Down Expand Up @@ -247,6 +250,7 @@ const Timeline = (props: TimelineProps) => {
contentContainerStyle={[styles.current.contentStyle, {width: constants.screenWidth}]}
showsVerticalScrollIndicator={false}
{...scrollEvents}
testID={testID}
>
<TimelineHours
start={start}
Expand Down

0 comments on commit cbed31f

Please sign in to comment.