-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
936f66f
commit 11e0b86
Showing
10 changed files
with
188 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import { useNavigate } from "@solidjs/router"; | ||
import { createSignal, Suspense } from "solid-js"; | ||
|
||
import { | ||
Button, | ||
ConfirmDialog, | ||
DefaultMain, | ||
ExternalLink, | ||
MutinyWalletGuard, | ||
VStack | ||
} from "~/components"; | ||
import { useI18n } from "~/i18n/context"; | ||
|
||
import { AddFederationForm } from "../settings"; | ||
|
||
export function AddFederation() { | ||
const i18n = useI18n(); | ||
const navigate = useNavigate(); | ||
|
||
const [confirmOpen, setConfirmOpen] = createSignal(false); | ||
|
||
async function handleSkip() { | ||
navigate("/"); | ||
} | ||
|
||
return ( | ||
<MutinyWalletGuard> | ||
<DefaultMain> | ||
<div class="mx-auto flex max-w-[20rem] flex-col items-center gap-4 py-4"> | ||
<h1 class="text-3xl font-semibold"> | ||
{i18n.t("setup.federation.pick")} | ||
</h1> | ||
<p class="text-pretty text-center text-xl font-light text-neutral-200"> | ||
{i18n.t("settings.manage_federations.description")} | ||
</p> | ||
<p class="text-pretty text-center text-xl font-light text-neutral-200"> | ||
{i18n.t("settings.manage_federations.descriptionpart2")} | ||
</p> | ||
|
||
<Button onClick={() => setConfirmOpen(true)} intent="text"> | ||
{i18n.t("setup.skip")} | ||
</Button> | ||
<ConfirmDialog | ||
open={confirmOpen()} | ||
loading={false} | ||
onConfirm={handleSkip} | ||
onCancel={() => setConfirmOpen(false)} | ||
> | ||
{i18n.t("setup.federation.skip_confirm")} | ||
</ConfirmDialog> | ||
<VStack> | ||
<Suspense> | ||
<AddFederationForm setup /> | ||
</Suspense> | ||
</VStack> | ||
<p class="text-pretty text-center text-xl font-light text-neutral-200"> | ||
<ExternalLink href="https://fedimint.org/docs/intro"> | ||
{i18n.t("settings.manage_federations.learn_more")} | ||
</ExternalLink> | ||
</p> | ||
</div> | ||
</DefaultMain> | ||
</MutinyWalletGuard> | ||
); | ||
} |
Oops, something went wrong.