Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
fix: links
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed May 2, 2024
1 parent ea8a03e commit f22b3e7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
34 changes: 17 additions & 17 deletions frontend/src/screens/channels/NewChannel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,23 +198,23 @@ function NewChannelInternal({ network }: { network: Network }) {
title="Open a channel"
description="Funds used to open a channel minus fees will be added to your spending balance"
/>
{/* TODO: move to somewhere else */}
{info?.backendType === "LDK" || true &&
albyBalance &&
albyBalance.sats * (1 - ALBY_SERVICE_FEE) > ALBY_MIN_BALANCE && (
<Alert>
<AlertTitle className="mb-4">
You have funds on your Alby shared account!
</AlertTitle>
<AlertDescription>
<Link to="/onboarding/lightning/migrate-alby">
<Button variant="outline">Migrate Alby Funds</Button>
</Link>
</AlertDescription>
</Alert>
)}

<form onSubmit={onSubmit} className="md:max-w-md max-w-full flex flex-col gap-5">
{/* TODO: move to somewhere else? */}
{info?.backendType === "LDK" &&
albyBalance &&
albyBalance.sats * (1 - ALBY_SERVICE_FEE) > ALBY_MIN_BALANCE && (
<Alert>
<AlertTitle className="mb-4">
You have funds on your Alby shared account!
</AlertTitle>
<AlertDescription>
<Link to="/onboarding/lightning/migrate-alby">
<Button variant="outline">Migrate Alby Funds</Button>
</Link>
</AlertDescription>
</Alert>
)}

<div className="grid gap-1.5">
<Label htmlFor="amount">Channel size (sats)</Label>
<Input
Expand Down Expand Up @@ -283,7 +283,7 @@ function NewChannelInternal({ network }: { network: Network }) {
<div>
{peer.name}
{peer.minimumChannelSize > 0 &&
<span className="ml-4 text-muted-foreground">Min. {new Intl.NumberFormat().format(peer.minimumChannelSize)} sats</span>
<span className="ml-4 text-xs text-muted-foreground">Min. {new Intl.NumberFormat().format(peer.minimumChannelSize)} sats</span>
}
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/screens/onboarding/MigrateAlbyFunds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export default function MigrateAlbyFunds() {
>
Migrate Funds and Open Channel
</LoadingButton>
<Link to="../channels/new/instant">
<Link to="/channels/new">
<Button variant="link">Explore Other Options</Button>
</Link>
</form>
Expand All @@ -227,7 +227,7 @@ export default function MigrateAlbyFunds() {
external wallet though.
</AlertDescription>
</Alert>
<Link to="../channels/new/instant" className="w-full">
<Link to="/channels/new" className="w-full">
<Button className="w-full">Explore Other Options</Button>
</Link>
</>
Expand Down

0 comments on commit f22b3e7

Please sign in to comment.