Skip to content

Commit

Permalink
Type RangeRail and Marks through WordPressComponentProps
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Apr 26, 2022
1 parent b17df9a commit 0013ca3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/components/src/range-control/rail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ import { isRTL } from '@wordpress/i18n';
import RangeMark from './mark';
import { MarksWrapper, Rail } from './styles/range-control-styles';

import type { WordPressComponentProps } from '../ui/context';
import type {
MarksProps,
RangeMarkProps,
RailProps,
useMarksArgs,
} from './types';

export default function RangeRail( props: RailProps ) {
export default function RangeRail(
props: WordPressComponentProps< RailProps, 'span' >
) {
const {
disabled = false,
marks = false,
Expand Down Expand Up @@ -44,7 +47,7 @@ export default function RangeRail( props: RailProps ) {
);
}

function Marks( props: MarksProps ) {
function Marks( props: WordPressComponentProps< MarksProps, 'span' > ) {
const {
disabled = false,
marks = false,
Expand Down

0 comments on commit 0013ca3

Please sign in to comment.