Skip to content

Commit

Permalink
allow reactnode as title in modal
Browse files Browse the repository at this point in the history
  • Loading branch information
ridz1208 committed Nov 8, 2024
1 parent acb9268 commit 09b0fd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsx/Modal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {useState, PropsWithChildren, CSSProperties} from 'react';
import {useState, PropsWithChildren, CSSProperties, ReactNode} from 'react';
import Swal from 'sweetalert2';
import Loader from './Loader';
import {
Expand All @@ -11,7 +11,7 @@ export type ModalProps = PropsWithChildren<{
onClose: () => void;
onSubmit?: () => Promise<any>;
onSuccess?: (data: any) => void;
title?: string;
title?: ReactNode;
}>;

/**
Expand Down

0 comments on commit 09b0fd3

Please sign in to comment.