Skip to content

Commit

Permalink
fix-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Dec 18, 2023
1 parent b452429 commit 40046ac
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import composeClasses from '@mui/utils/composeClasses';
import { useDrawingArea, useXScale } from '../hooks';
import { CommonChartsReferenceLineProps, ReferenceLineRoot } from './common';
import { ChartsText } from '../ChartsText/ChartsText';
import { ChartsText } from '../ChartsText';
import {
ChartsReferenceLineClasses,
getReferenceLineUtilityClass,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import composeClasses from '@mui/utils/composeClasses';
import { useDrawingArea, useYScale } from '../hooks';
import { CommonChartsReferenceLineProps, ReferenceLineRoot } from './common';
import { ChartsText } from '../ChartsText/ChartsText';
import { ChartsText } from '../ChartsText';
import {
ChartsReferenceLineClasses,
getReferenceLineUtilityClass,
Expand Down
2 changes: 1 addition & 1 deletion packages/x-charts/src/ChartsReferenceLine/common.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { styled } from '@mui/material/styles';
import { referenceLineClasses, ChartsReferenceLineClasses } from './chartsReferenceLineClasses';
import { ChartsTextStyle } from '../ChartsText/ChartsText';
import { ChartsTextStyle } from '../ChartsText';

export type CommonChartsReferenceLineProps = {
/**
Expand Down
3 changes: 2 additions & 1 deletion packages/x-charts/src/ChartsXAxis/ChartsXAxis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import useTicks, { TickItemType } from '../hooks/useTicks';
import { ChartsXAxisProps } from '../models/axis';
import { getAxisUtilityClass } from '../ChartsAxis/axisClasses';
import { AxisRoot } from '../internals/components/AxisSharedComponents';
import { ChartsText, ChartsTextProps, getWordsByLines } from '../ChartsText/ChartsText';
import { ChartsText, ChartsTextProps } from '../ChartsText';
import { getMinXTranslation } from '../internals/geometry';
import { useMounted } from '../hooks/useMounted';
import { getWordsByLines } from '../internals/getWordsByLines';

const useUtilityClasses = (ownerState: ChartsXAxisProps & { theme: Theme }) => {
const { classes, position } = ownerState;
Expand Down
2 changes: 1 addition & 1 deletion packages/x-charts/src/ChartsYAxis/ChartsYAxis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DrawingContext } from '../context/DrawingProvider';
import useTicks from '../hooks/useTicks';
import { ChartsYAxisProps } from '../models/axis';
import { AxisRoot } from '../internals/components/AxisSharedComponents';
import { ChartsText, ChartsTextProps } from '../ChartsText/ChartsText';
import { ChartsText, ChartsTextProps } from '../ChartsText';
import { getAxisUtilityClass } from '../ChartsAxis/axisClasses';

const useUtilityClasses = (ownerState: ChartsYAxisProps & { theme: Theme }) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/x-charts/src/models/axis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
} from 'd3-scale';
import { ChartsAxisClasses } from '../ChartsAxis/axisClasses';
import type { TickParams } from '../hooks/useTicks';
import { ChartsTextProps } from '../ChartsText/ChartsText';
import { ChartsTextProps } from '../ChartsText';

export type D3Scale<
Domain extends { toString(): string } = number | Date | string,
Expand Down

0 comments on commit 40046ac

Please sign in to comment.