Skip to content

Commit

Permalink
[refactor] Fix errors in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed Dec 8, 2023
1 parent eebd557 commit 5fe4860
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ describe('@mantine/core/DrawerHeader', () => {
variant: true,
size: true,
classes: true,
refType: HTMLDivElement,
refType: HTMLElement,
displayName: '@mantine/core/DrawerHeader',
selector: '.mantine-Drawer-header',
variantSelector: '.mantine-Drawer-header',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface DrawerHeaderProps

export type DrawerHeaderFactory = Factory<{
props: DrawerHeaderProps;
ref: HTMLDivElement;
ref: HTMLElement;
stylesNames: DrawerHeaderStylesNames;
compound: true;
}>;
Expand Down
2 changes: 1 addition & 1 deletion packages/@mantine/core/src/components/Modal/Modal.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ describe('@mantine/core/ModalHeader', () => {
variant: true,
size: true,
classes: true,
refType: HTMLDivElement,
refType: HTMLElement,
displayName: '@mantine/core/ModalHeader',
selector: '.mantine-Modal-header',
variantSelector: '.mantine-Modal-header',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface ModalHeaderProps

export type ModalHeaderFactory = Factory<{
props: ModalHeaderProps;
ref: HTMLDivElement;
ref: HTMLElement;
stylesNames: ModalHeaderStylesNames;
compound: true;
}>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { Box, BoxProps, ElementProps } from '../../core';
import classes from './ModalBase.module.css';
import { useModalBaseContext } from './ModalBase.context';

export interface ModalBaseHeaderProps extends BoxProps, ElementProps<'div'> {}
export interface ModalBaseHeaderProps extends BoxProps, ElementProps<'header'> {}

export const ModalBaseHeader = forwardRef<HTMLDivElement, ModalBaseHeaderProps>(
export const ModalBaseHeader = forwardRef<HTMLElement, ModalBaseHeaderProps>(
({ className, ...others }, ref) => {
const ctx = useModalBaseContext();
return (
Expand Down

0 comments on commit 5fe4860

Please sign in to comment.