Skip to content

Commit

Permalink
move backup cta to top
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul authored and AnthonyRonning committed May 6, 2024
1 parent dab53ac commit 84daafa
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/components/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,17 @@ export function CombinedActivity() {
/>
</Show>
<Suspense fallback={<LoadingShimmer />}>
<Show when={!state.has_backed_up}>
<ButtonCard
red
onClick={() => navigate("/settings/backup")}
>
<div class="flex items-center gap-2">
<Save class="inline-block text-neutral-200" />
<NiceP>{i18n.t("home.backup")}</NiceP>
</div>
</ButtonCard>
</Show>
<Switch>
<Match when={activity.latest?.length === 0}>
<Show when={state.federations?.length === 0}>
Expand Down Expand Up @@ -477,17 +488,6 @@ export function CombinedActivity() {
</div>
</Match>
</Switch>
<Show when={!state.has_backed_up}>
<ButtonCard
red
onClick={() => navigate("/settings/backup")}
>
<div class="flex items-center gap-2">
<Save class="inline-block text-neutral-200" />
<NiceP>{i18n.t("home.backup")}</NiceP>
</div>
</ButtonCard>
</Show>
</Suspense>
</>
);
Expand Down

0 comments on commit 84daafa

Please sign in to comment.