Skip to content

Commit 25366da

Browse files
committed
Update CompositeCurve component props and adjust gradient colors in FrequencyResponseGraph stories
1 parent 67b678b commit 25366da

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/components/CompositeCurve/CompositeCurve.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ type CompositeCurveProps = {
2828
dotted?: boolean
2929
/**
3030
* Composite curve color
31-
* @default theme.curve.composite.color || '#FFFFFF'
31+
* @default theme.curve.color || '#FFFFFF'
3232
*/
3333
color?: string
3434
/**
3535
* Composite curve opacity
36-
* @default theme.curve.composite.opacity || 1
36+
* @default theme.curve.opacity || 1
3737
*/
3838
opacity?: number
3939
/**
4040
* Composite curve line width
41-
* @default theme.curve.composite.width || 1.5
41+
* @default theme.curve.width || 1.5
4242
*/
4343
lineWidth?: number
4444
/**
@@ -73,9 +73,9 @@ type CompositeCurveProps = {
7373
export const CompositeCurve = ({
7474
filters,
7575
dotted = false,
76-
color = '#FFFFFF',
77-
opacity = 1,
78-
lineWidth = 1.5,
76+
color,
77+
opacity,
78+
lineWidth,
7979
resolutionFactor = 2,
8080
gradientId,
8181
className,

src/components/FrequencyResponseGraph/FrequencyResponseGraph.stories.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ export const CustomTheme: Story = {
6262
lineWidth: { minor: 0.5, major: 1.5, center: 1.5, border: 0 }
6363
},
6464
gradient: {
65-
start: '#141D22',
66-
stop: '#141D22'
65+
start: '#0d1417',
66+
stop: '#24353e',
67+
direction: 'HORIZONTAL'
6768
},
6869
label: {
6970
fontSize: 10,

0 commit comments

Comments
 (0)