From d02bc39703fcf3ffb9ab6b0c0f394e4433c07941 Mon Sep 17 00:00:00 2001 From: Ryan Killeen Date: Wed, 24 Jan 2024 13:13:27 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Chris Williams --- packages/visx-axis/src/axis/AxisRenderer.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/visx-axis/src/axis/AxisRenderer.tsx b/packages/visx-axis/src/axis/AxisRenderer.tsx index a7ea3e1bb..cc73b8f65 100644 --- a/packages/visx-axis/src/axis/AxisRenderer.tsx +++ b/packages/visx-axis/src/axis/AxisRenderer.tsx @@ -42,9 +42,9 @@ export default function AxisRenderer({ ticks, ticksComponent = Ticks, }: AxisRendererProps) { - const labelPropsDefault = { + const combinedLabelProps = { ...defaultTextProps, - ...labelProps + ...labelProps, } const tickLabelPropsDefault = { ...defaultTextProps, @@ -93,7 +93,7 @@ export default function AxisRenderer({ className={cx('visx-axis-label', labelClassName)} {...getLabelTransform({ labelOffset, - labelPropsDefault, + labelProps: combinedLabelProps, orientation, range: scale.range(), tickLabelFontSize: maxTickLabelFontSize,