Skip to content

Commit

Permalink
Show 'configure' on error
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Feb 2, 2024
1 parent a2f6181 commit c1f41c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/wallet-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import CancelButton from './cancel-button'
import { SubmitButton } from './form'

export function WalletCard ({ title, badges, provider, enabled }) {
const isConfigured = enabled === true || enabled === false
return (
<Card className={styles.card}>
<div className={`${styles.indicator} ${enabled === true ? styles.success : enabled === false ? styles.error : styles.disabled}`} />
Expand All @@ -23,7 +24,7 @@ export function WalletCard ({ title, badges, provider, enabled }) {
{provider &&
<Link href={`/settings/wallets/${provider}`}>
<Card.Footer className={styles.attach}>
{enabled
{isConfigured
? <>configure<Gear width={14} height={14} /></>
: <>attach<Plug width={14} height={14} /></>}
</Card.Footer>
Expand Down

0 comments on commit c1f41c5

Please sign in to comment.