Skip to content

Commit

Permalink
add maxHeight property to generic modal
Browse files Browse the repository at this point in the history
  • Loading branch information
TalMalka123 committed Jul 3, 2023
1 parent 0eaed82 commit 36ee01e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
font-style: normal;
gap: 16px;
height: 100%;
max-height: inherit;
}

.modal-content__title {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ export interface ModalProps {
elements: JSX.Element[];
onClose: () => void;
height?: number;
maxHeight?:number;
}

export function GenericModal({ title, elements, onClose, height }: ModalProps) {
export function GenericModal({ title, elements, onClose, height, maxHeight }: ModalProps) {
const genericModalHeightStyle = {
height: height ? height : 'auto'
height: height ? height : 'auto',
maxHeight: maxHeight? maxHeight: 'auto'
};

return (
Expand Down

0 comments on commit 36ee01e

Please sign in to comment.