Skip to content

Commit

Permalink
Adding modal height change
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Mar 3, 2023
1 parent c8da6a1 commit caf459f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/masa-interface/masa-interface.tsx
Expand Up @@ -86,6 +86,7 @@ export const MasaInterface = ({
open={isModalOpen as boolean}
close={(): void => closeModal?.()}
setOpen={setModalOpen as (val: boolean) => void}
height={page === 'createIdentity' ? 400 : undefined}
>
{page === 'connector' ? pages[page]({ disableMetamask }) : pages[page]}
</ModalComponent>
Expand Down
4 changes: 3 additions & 1 deletion src/components/modal/modal.tsx
Expand Up @@ -8,17 +8,19 @@ export interface ModalProps {
open: boolean;
setOpen: (val: boolean) => void;
close: () => void;
height?: number;
}

export const ModalComponent = ({
children,
open,
close,
height,
}: ModalProps): JSX.Element => {
return (
<Rodal
data-cy="closeMasaModal"
height={615}
height={height ? height : 615}
width={550}
visible={open}
onClose={(): void => close()}
Expand Down

0 comments on commit caf459f

Please sign in to comment.