Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed Jul 28, 2023
1 parent ef2938a commit aefac35
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/app/screens/Accounts/NostrSettings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function NostrSettings() {
disabled
endAdornment={<InputCopyButton value={nostrPublicKey} />}
/>
<div className="mt-4 flex gap-4 items-center">
<div className="mt-4 flex gap-4 items-center justify-center">
{nostrPrivateKey && (
<Button
error
Expand All @@ -228,16 +228,13 @@ function NostrSettings() {
/>
)}
{hasImportedNostrKey &&
nostrPrivateKey === currentPrivateKey && (
<>
{hasMnemonic && (
<Button
outline
label={t("nostr.settings.derive")}
onClick={handleDeriveNostrKeyFromSecretKey}
/>
)}
</>
nostrPrivateKey === currentPrivateKey &&
hasMnemonic && (
<Button
outline
label={t("nostr.settings.derive")}
onClick={handleDeriveNostrKeyFromSecretKey}
/>
)}
</div>
</div>
Expand Down

0 comments on commit aefac35

Please sign in to comment.