Skip federation selector on startup

This commit is contained in:
benthecarman
2024-06-24 14:30:33 -05:00
committed by benthecarman
parent 1379b4a6d9
commit f1e461a7d1
2 changed files with 16 additions and 14 deletions

View File

@@ -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" />

View File

@@ -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);
}