mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-02-21 22:24:24 +01:00
Skip federation selector on startup
This commit is contained in:
committed by
benthecarman
parent
1379b4a6d9
commit
f1e461a7d1
@@ -441,18 +441,18 @@ export function CombinedActivity() {
|
||||
</Show>
|
||||
<Switch>
|
||||
<Match when={activity.latest?.length === 0}>
|
||||
<Show when={state.federations?.length === 0}>
|
||||
<ButtonCard
|
||||
onClick={() =>
|
||||
navigate("/settings/federations")
|
||||
}
|
||||
>
|
||||
<div class="flex items-center gap-2">
|
||||
<Users class="inline-block text-m-red" />
|
||||
<NiceP>{i18n.t("home.federation")}</NiceP>
|
||||
</div>
|
||||
</ButtonCard>
|
||||
</Show>
|
||||
{/*<Show when={state.federations?.length === 0}>*/}
|
||||
{/* <ButtonCard*/}
|
||||
{/* onClick={() =>*/}
|
||||
{/* navigate("/settings/federations")*/}
|
||||
{/* }*/}
|
||||
{/* >*/}
|
||||
{/* <div class="flex items-center gap-2">*/}
|
||||
{/* <Users class="inline-block text-m-red" />*/}
|
||||
{/* <NiceP>{i18n.t("home.federation")}</NiceP>*/}
|
||||
{/* </div>*/}
|
||||
{/* </ButtonCard>*/}
|
||||
{/*</Show>*/}
|
||||
<ButtonCard onClick={() => navigate("/receive")}>
|
||||
<div class="flex items-center gap-2">
|
||||
<Plus class="inline-block text-m-red" />
|
||||
|
||||
@@ -31,7 +31,8 @@ export function NewProfile() {
|
||||
);
|
||||
console.log("profile", profile);
|
||||
localStorage.setItem("profile_setup_stage", "skipped");
|
||||
navigate("/addfederation");
|
||||
// navigate("/addfederation");
|
||||
navigate("/");
|
||||
setSkipping(false);
|
||||
}
|
||||
|
||||
@@ -46,7 +47,8 @@ export function NewProfile() {
|
||||
);
|
||||
console.log("profile", profile);
|
||||
localStorage.setItem("profile_setup_stage", "saved");
|
||||
navigate("/addfederation");
|
||||
// navigate("/addfederation");
|
||||
navigate("/");
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user