Skip to content

Commit 13f1d76

Browse files
committed
fix: actionsheet item typing fix
1 parent 303a8a1 commit 13f1d76

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/components/composites/Actionsheet/ActionsheetItem.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import React, { memo, forwardRef } from 'react';
22
import { Pressable } from '../../primitives/Pressable';
3-
import Box, { IBoxProps } from '../../primitives/Box';
3+
import Box from '../../primitives/Box';
44
import { HStack } from '../../primitives/Stack';
55
import Spinner from '../../primitives/Spinner';
6-
import type { IButtonProps } from '../../primitives/Button';
76
import { usePropsResolution } from '../../../hooks';
87
import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps';
8+
import type { IActionsheetItemProps } from './types';
99

1010
const ActionsheetItem = (
1111
{
@@ -20,7 +20,7 @@ const ActionsheetItem = (
2020
isLoading,
2121
spinnerPlacement = 'start',
2222
...props
23-
}: IButtonProps & IBoxProps,
23+
}: IActionsheetItemProps,
2424
ref: any
2525
) => {
2626
const {

src/components/composites/Actionsheet/types.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ export interface IActionsheetFooterProps
4848
extends InterfaceBoxProps<IActionsheetFooterProps> {}
4949
export interface IActionsheetHeaderProps
5050
extends InterfaceBoxProps<IActionsheetHeaderProps> {}
51-
export interface IActionsheetItemProps extends InterfaceButtonProps {}
51+
export interface IActionsheetItemProps
52+
extends Omit<InterfaceButtonProps, 'variant' | 'size' | 'colorScheme'> {}
5253

5354
export type IActionsheetComponentType = ((
5455
props: IActionsheetProps & { ref?: MutableRefObject<any> }

0 commit comments

Comments
 (0)