Skip to content

Commit ecd0218

Browse files
committed
trivial. fix type errors
1 parent a5c0974 commit ecd0218

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/common/hook/UseRipple.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const useRipple = (ref: MutableRefObject<HTMLElement>) => {
1515
// region [Hooks]
1616

1717
const status = useRef<RippleStatus>('off');
18-
const lastRipplePromise = useRef<Promise<string>>();
18+
const lastRipplePromise = useRef<Promise<string>>(null);
1919

2020
// endregion
2121

src/components/data-container/tab-box/TTabBox.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type {TBaseProps} from '@/common/base/TBase.interface';
55
export type TTabBoxValue = string | number;
66

77
export interface TTabBoxProps extends TBaseProps {
8-
children: ReactElement[];
8+
children: ReactElement<TTabItemProps>[];
99
value: TTabBoxValue;
1010
onChange: (value: TTabBoxValue) => void;
1111
}

src/components/data-container/tab-box/TTabBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const TTabBox = ({onChange, value, children, style, className, ...restProps}: TT
5353
{children.map((child, index) =>
5454
cloneElement(child, {
5555
index,
56-
key: child.props.value || index,
56+
key: child.props.value ?? index,
5757
})
5858
)}
5959
</TTabBoxContext.Provider>

0 commit comments

Comments
 (0)