Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Williams <williaster@users.noreply.github.com>
  • Loading branch information
RyKilleen and williaster committed Jan 24, 2024
1 parent a69620c commit d02bc39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/visx-axis/src/axis/AxisRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export default function AxisRenderer<Scale extends AxisScale>({
ticks,
ticksComponent = Ticks,
}: AxisRendererProps<Scale>) {
const labelPropsDefault = {
const combinedLabelProps = {
...defaultTextProps,
...labelProps
...labelProps,
}
const tickLabelPropsDefault = {
...defaultTextProps,
Expand Down Expand Up @@ -93,7 +93,7 @@ export default function AxisRenderer<Scale extends AxisScale>({
className={cx('visx-axis-label', labelClassName)}
{...getLabelTransform({
labelOffset,
labelPropsDefault,
labelProps: combinedLabelProps,
orientation,
range: scale.range(),
tickLabelFontSize: maxTickLabelFontSize,
Expand Down

0 comments on commit d02bc39

Please sign in to comment.