Skip to content

Commit

Permalink
Style update
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Mar 3, 2023
1 parent caf459f commit 40e41b4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
16 changes: 8 additions & 8 deletions src/components/masa-interface/masa-interface.tsx
Expand Up @@ -53,14 +53,14 @@ export const MasaInterface = ({
// if (network && !chain?.name.includes(network)) return 'switchNetwork';
if (!isLoggedIn && provider) return 'authenticate';

if (
isLoggedIn &&
(!soulnames || (soulnames && soulnames.length === 0)) &&
scope?.includes('soulname')
)
return 'createSoulname';
// if (
// isLoggedIn &&
// (!soulnames || (soulnames && soulnames.length === 0)) &&
// scope?.includes('soulname')
// )
// return 'createSoulname';

if (!identity?.identityId && scope?.includes('identity'))
if (isLoggedIn && !identity?.identityId && scope?.includes('identity'))
return 'createIdentity';

if (identity && !creditScores?.length && scope?.includes('credit-score'))
Expand All @@ -86,7 +86,7 @@ export const MasaInterface = ({
open={isModalOpen as boolean}
close={(): void => closeModal?.()}
setOpen={setModalOpen as (val: boolean) => void}
height={page === 'createIdentity' ? 400 : undefined}
height={page === 'createIdentity' ? 340 : undefined}
>
{page === 'connector' ? pages[page]({ disableMetamask }) : pages[page]}
</ModalComponent>
Expand Down
Expand Up @@ -12,9 +12,9 @@ export const InterfaceCreateIdentity = (): JSX.Element => {
if (isLoading) return <MasaLoading />;

return (
<div className="interface-create-identity flex items-center justify-center">
<h3>Hurray! 🎉</h3>
<p>
<div className="interface-create-identity">
<h3 className="title">Hurray! 🎉</h3>
<p className="subtitle">
Congratulations you already have a Celo Domain Name in your wallet. You
must now mint a Celo Prosperity Passport.
</p>
Expand Down
5 changes: 4 additions & 1 deletion src/components/modal/styles.scss
Expand Up @@ -283,9 +283,11 @@
}

.interface-create-identity {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 3rem;
gap:16px;

h3 {
font-size: 30px;
Expand All @@ -296,6 +298,7 @@
font-size: 18px;
text-align: center;
line-height: 24px;
color: rgba(0,0,0,0.6)
}

button {
Expand Down

0 comments on commit 40e41b4

Please sign in to comment.