Skip to content

Commit

Permalink
changes on properties
Browse files Browse the repository at this point in the history
  • Loading branch information
gaudyb committed Nov 7, 2023
1 parent 7b07ee2 commit a48c67e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/components/src/TimeBrush/TimeBrush.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ const DEFAULT_WIDTH = 800
const DEFAULT_HEIGHT = 24
const DEFAULT_BAR_WIDTH = 4
const BAR_GAP = 1
const DEFAULT_FOOTER_WIDTH = 18

export const TimeBrush: React.FC<TimeBrushProps> = memo(function TimeBrush({
width = DEFAULT_WIDTH,
height = DEFAULT_HEIGHT,
footerWidth = DEFAULT_FOOTER_WIDTH,
dateRange,
markedDate,
elements,
Expand Down Expand Up @@ -61,7 +63,7 @@ export const TimeBrush: React.FC<TimeBrushProps> = memo(function TimeBrush({
dateRange={dateRange}
brushRange={selectionRange}
width={width}
height={18}
height={footerWidth}
barWidth={barWidth}
onBrushEnd={handleBrushEnd}
roundToDay={true}
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/TimeBrush/TimeBrush.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface TimeBrushProps {
dateRange: [Date, Date]
width?: number
height?: number
footerWidth?: number
selectionRange?: [Date, Date]
markedDate?: Date
from?: string
Expand Down

0 comments on commit a48c67e

Please sign in to comment.