Skip to content

Commit

Permalink
Skip federation selector on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Jun 24, 2024
1 parent 1379b4a commit f1e461a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
24 changes: 12 additions & 12 deletions src/components/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
6 changes: 4 additions & 2 deletions src/routes/setup/NewProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export function NewProfile() {
);
console.log("profile", profile);
localStorage.setItem("profile_setup_stage", "skipped");
navigate("/addfederation");
// navigate("/addfederation");
navigate("/");
setSkipping(false);
}

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

0 comments on commit f1e461a

Please sign in to comment.