Skip to content

Commit

Permalink
Merge pull request #56 from shypko11/master
Browse files Browse the repository at this point in the history
change for optionals props
  • Loading branch information
max-mykhailenko committed Mar 29, 2021
2 parents 51a4037 + 53b66b6 commit b3f87eb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/pure-modal-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ type Props = {
children: JSX.Element;
onDragStart?: (event: MouseOrTouch) => unknown;
onDragEnd?: (event: MouseOrTouch) => unknown;
onClose: (event: React.MouseEvent<HTMLDivElement>) => void;
bodyClass: string;
header: JSX.Element | string;
footer: JSX.Element | string;
onClose?: (event: React.MouseEvent<HTMLDivElement>) => void;
bodyClass?: string;
header?: JSX.Element | string;
footer?: JSX.Element | string;
closeButton: JSX.Element | string;
closeButtonPosition: string;
draggable: boolean;
Expand Down
24 changes: 12 additions & 12 deletions src/react-pure-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ import type { MouseOrTouch } from './types';

type Props = {
children: JSX.Element;
replace: boolean;
className: string;
header: JSX.Element | string;
footer: JSX.Element | string;
scrollable: boolean;
draggable: boolean;
width: string;
isOpen: boolean;
onClose: Function;
closeButton: JSX.Element | string;
closeButtonPosition: string;
portal: boolean;
replace?: boolean;
className?: string;
header?: JSX.Element | string;
footer?: JSX.Element | string;
scrollable?: boolean;
draggable?: boolean;
width?: string;
isOpen?: boolean;
onClose?: Function;
closeButton?: JSX.Element | string;
closeButtonPosition?: string;
portal?: boolean;
};

function PureModal(props: Props) {
Expand Down

0 comments on commit b3f87eb

Please sign in to comment.