Skip to content

Commit 45b33c0

Browse files
authored
Merge pull request #82 from facuparedes-litebox/patch-1
Fix useModel arguments type
2 parents 1feda06 + 1b91b68 commit 45b33c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export function useModal(modal: string, args?: Record<string, unknown>): NiceMod
280280
export function useModal<
281281
T extends React.FC<any>,
282282
ComponentProps extends NiceModalArgs<T>,
283-
PreparedProps extends Partial<ComponentProps> = {},
283+
PreparedProps extends Partial<ComponentProps>,
284284
RemainingProps = Omit<ComponentProps, keyof PreparedProps> & Partial<ComponentProps>,
285285
>(
286286
modal: T,

0 commit comments

Comments
 (0)