Skip to content

Commit

Permalink
remove unused code from <Alert/> and styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeesun Kim authored and Jeesun Kim committed Mar 20, 2024
1 parent e2228a3 commit 9c6ece1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 40 deletions.
12 changes: 5 additions & 7 deletions src/app/(sidebar)/account/fund/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,10 @@ export default function FundAccount() {
onClose={() => {
setShowAlert(false);
}}
title={`Successfully funded ${shortenStellarAddress(account.publicKey)} on
${network.id}`}
>
<Text size="md" as="span" weight="medium">
Successfully funded {shortenStellarAddress(account.publicKey)} on{" "}
{network.id}
</Text>
{""}
</Alert>
)}
{showAlert && isFetchedAfterMount && isError && (
Expand All @@ -112,10 +111,9 @@ export default function FundAccount() {
onClose={() => {
setShowAlert(false);
}}
title={error?.message}
>
<Text size="md" as="span" weight="medium">
{error.message}
</Text>
{""}
</Alert>
)}
</div>
Expand Down
34 changes: 1 addition & 33 deletions src/app/(sidebar)/account/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@
align-self: flex-start;
}

.Text--purple {
color: var(--sds-clr-lilac-11);
}

&__CTA {
display: flex;
gap: pxToRem(18px) pxToRem(8px);
}

&__keypair {
display: flex;
align-items: flex-start;
Expand All @@ -34,33 +31,4 @@
cursor: pointer;
}
}

&__alertbox {
display: flex;
padding: pxToRem(12px);
gap: pxToRem(12px);

.Text {
margin-bottom: 0;
}

&__content {
display: flex;
flex-direction: column;
gap: pxToRem(12px);
}

&__icon {
padding: pxToRem(9.5px);
background-color: var(--sds-clr-gray-02);
border: 1px solid var(--sds-clr-gray-06);
border-radius: 6px;
align-self: flex-start;
}

&__CTA {
display: flex;
gap: pxToRem(12px);
}
}
}

0 comments on commit 9c6ece1

Please sign in to comment.