diff --git a/public/i18n/en.json b/public/i18n/en.json index 977e8106..1b2305a4 100644 --- a/public/i18n/en.json +++ b/public/i18n/en.json @@ -548,7 +548,7 @@ "federation_added_success": "Federation added successfully", "federation_remove_confirm": "Are you sure you want to remove this federation? Make sure any funds you have are transferred to your lightning balance or another wallet first.", "add": "Add", - "remove": "Remove", + "remove": "Leave federation", "expires": "Expires", "federation_id": "Federation ID", "description": "Federations are bitcoin-based networks that make it cheaper, quicker, and easier to use bitcoin.", @@ -559,7 +559,9 @@ "recommended_by": "Recommended By", "already_in_fed": "You're already in a federation!", "descriptionpart2": "Each one is ran by a group of different inviduals or companies. Discover one that you or your friends might trust below.", - "join_me": "Join me" + "join_me": "Join me", + "recommend": "Recommend federation", + "recommended_by_you": "Recommended by you" }, "gift": { "give_sats_link": "Give sats as a gift", diff --git a/src/components/layout/LoadingSpinner.tsx b/src/components/layout/LoadingSpinner.tsx index 560a9d88..5dda899c 100644 --- a/src/components/layout/LoadingSpinner.tsx +++ b/src/components/layout/LoadingSpinner.tsx @@ -2,13 +2,15 @@ export const LoadingSpinner = (props: { big?: boolean; wide?: boolean; small?: boolean; + smallest?: boolean; }) => { return (
void; + loading?: boolean; + disabled?: boolean; + intent?: "red" | "green" | "blue"; + type?: "button" | "submit"; +}) { + return ( + + ); +} diff --git a/src/components/layout/index.ts b/src/components/layout/index.ts index 739257d4..55d58f7a 100644 --- a/src/components/layout/index.ts +++ b/src/components/layout/index.ts @@ -6,3 +6,4 @@ export * from "./Radio"; export * from "./TextField"; export * from "./ExternalLink"; export * from "./LoadingSpinner"; +export * from "./SubtleButton"; diff --git a/src/routes/settings/ManageFederations.tsx b/src/routes/settings/ManageFederations.tsx index 1deeb741..7ef73d0f 100644 --- a/src/routes/settings/ManageFederations.tsx +++ b/src/routes/settings/ManageFederations.tsx @@ -7,7 +7,7 @@ import { } from "@modular-forms/solid"; import { FederationBalance, TagItem } from "@mutinywallet/mutiny-wasm"; import { A, useNavigate, useSearchParams } from "@solidjs/router"; -import { BadgeCheck, Scan } from "lucide-solid"; +import { BadgeCheck, LogOut, Scan, Trash } from "lucide-solid"; import { createResource, createSignal, @@ -39,6 +39,7 @@ import { NavBar, NiceP, showToast, + SubtleButton, TextField, VStack } from "~/components"; @@ -345,6 +346,7 @@ export function AddFederationForm(props: { function RecommendButton(props: { fed: MutinyFederationIdentity }) { const [state] = useMegaStore(); + const i18n = useI18n(); const [recommendLoading, setRecommendLoading] = createSignal(false); // This is just some local state that makes it feel like they've recommended it // even if they aren't a "real person" @@ -395,26 +397,29 @@ function RecommendButton(props: { fed: MutinyFederationIdentity }) { return ( -

- - Recommended by you -

- +
+
+ + {i18n.t( + "settings.manage_federations.recommended_by_you" + )} +
+ + + +
- + + {i18n.t("settings.manage_federations.recommend")} +
); @@ -495,9 +500,10 @@ function FederationListItem(props: { - +