Skip to content

Commit

Permalink
remove 200k language
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul committed Apr 27, 2024
1 parent 44b86e6 commit 7608698
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion public/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
"what_for": "What's this for?",
"method_help": {
"title": "Receive Method",
"body": "Lightning receives under 200,000 sats go into your federation by default. Anything higher than that goes into a lightning channel."
"body": "Lightning receives will automatically go into your chosen federation. You can swap to self-custodial later if you want."
}
},
"send": {
Expand Down
17 changes: 4 additions & 13 deletions src/routes/Receive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
MutinyInvoice
} from "@mutinywallet/mutiny-wasm";
import { useNavigate } from "@solidjs/router";
import { ArrowLeftRight, CircleHelp, Users, Zap } from "lucide-solid";
import { ArrowLeftRight, CircleHelp, Users } from "lucide-solid";
import {
createEffect,
createMemo,
Expand Down Expand Up @@ -102,20 +102,13 @@ function FeeWarning(props: { fee: bigint; flavor: ReceiveFlavor }) {
);
}

function ReceiveMethodHelp(props: { amountSats: bigint }) {
function ReceiveMethodHelp() {
const i18n = useI18n();
const [open, setOpen] = createSignal(false);
return (
<>
<button class="flex gap-2 self-end" onClick={() => setOpen(true)}>
<Switch>
<Match when={props.amountSats <= 200000n}>
<Users class="w-[18px]" />
</Match>
<Match when={true}>
<Zap class="w-[18px]" />
</Match>
</Switch>
<Users class="w-[18px]" />
<CircleHelp class="w-[18px] text-m-grey-350" />
</button>
<SimpleDialog
Expand Down Expand Up @@ -415,9 +408,7 @@ export function Receive() {
state.federations.length
}
>
<ReceiveMethodHelp
amountSats={amount() || 0n}
/>
<ReceiveMethodHelp />
</Show>
<form onSubmit={onSubmit}>
<SimpleInput
Expand Down

0 comments on commit 7608698

Please sign in to comment.