Skip to content

Commit 04e2f4f

Browse files
committed
fix: fix type error
1 parent f41ca1d commit 04e2f4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/action-sheet/ActionSheetGrid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import cx from 'classnames';
33

44
import type { ActionSheetProps } from './ActionSheet';
55
import type { ActionSheetItem } from './type';
6-
6+
import type { TNode } from '../common';
77
import { Grid, GridItem } from '../grid';
88
import { Swiper, SwiperProps } from '../swiper';
99
import { usePrefixClass } from '../hooks/useClass';
@@ -57,7 +57,7 @@ export function ActionSheetGrid(props: ActionSheetGridProps) {
5757
<Grid gutter={0} column={gridColumn} style={{ width: '100%' }}>
5858
{item.map((it, idx2) => {
5959
let label: string;
60-
let image: React.ReactNode;
60+
let image: TNode;
6161
let badge: ActionSheetItem['badge'];
6262
if (typeof it === 'string') {
6363
label = it;

0 commit comments

Comments
 (0)