Skip to content

Commit

Permalink
[@mantine/core] Fix incorrect ref prop type in Carousel, List, Scroll…
Browse files Browse the repository at this point in the history
…Area, Switch and Tabs components (#2579)
  • Loading branch information
rtivital committed Sep 29, 2022
1 parent 7503b2d commit de7f6c6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/mantine-carousel/src/Carousel.tsx
Expand Up @@ -23,7 +23,7 @@ export type CarouselStylesNames = CarouselSlideStylesNames | Selectors<typeof us

export interface CarouselProps
extends DefaultProps<CarouselStylesNames, CarouselStylesParams>,
React.ComponentPropsWithoutRef<'div'> {
React.ComponentPropsWithRef<'div'> {
/** <Carousel.Slide /> components */
children?: React.ReactNode;

Expand Down
2 changes: 1 addition & 1 deletion src/mantine-core/src/List/List.tsx
Expand Up @@ -16,7 +16,7 @@ export type ListStylesNames = ListItemStylesNames | Selectors<typeof useStyles>;

export interface ListProps
extends DefaultProps<ListStylesNames>,
React.ComponentPropsWithoutRef<'ul'> {
React.ComponentPropsWithRef<'ul'> {
/** <List.Item /> components only */
children: React.ReactNode;

Expand Down
2 changes: 1 addition & 1 deletion src/mantine-core/src/ScrollArea/ScrollArea.tsx
Expand Up @@ -14,7 +14,7 @@ export type ScrollAreaStylesNames = Selectors<typeof useStyles>;

export interface ScrollAreaProps
extends DefaultProps<ScrollAreaStylesNames, ScrollAreaStylesParams>,
React.ComponentPropsWithoutRef<'div'> {
React.ComponentPropsWithRef<'div'> {
/** Scrollbar size in px */
scrollbarSize?: number;

Expand Down
2 changes: 1 addition & 1 deletion src/mantine-core/src/Switch/Switch.tsx
Expand Up @@ -19,7 +19,7 @@ export type SwitchStylesNames = Selectors<typeof useStyles>;

export interface SwitchProps
extends DefaultProps<SwitchStylesNames, SwitchStylesParams>,
Omit<React.ComponentPropsWithoutRef<'input'>, 'type' | 'size'> {
Omit<React.ComponentPropsWithRef<'input'>, 'type' | 'size'> {
/** Id is used to bind input and label, if not passed unique id will be generated for each input */
id?: string;

Expand Down
2 changes: 1 addition & 1 deletion src/mantine-core/src/Tabs/Tabs.tsx
Expand Up @@ -23,7 +23,7 @@ export type TabsStylesNames =
export interface TabsProps
extends TabsProviderProps,
DefaultProps<TabsStylesNames, TabsStylesParams>,
Omit<React.ComponentPropsWithoutRef<'div'>, keyof TabsProviderProps> {}
Omit<React.ComponentPropsWithRef<'div'>, keyof TabsProviderProps> {}

type TabsComponent = ForwardRefWithStaticComponents<
TabsProps,
Expand Down

0 comments on commit de7f6c6

Please sign in to comment.