Skip to content

Commit

Permalink
chore: add link to guide from migrate page, link to standard backup page
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Jan 29, 2025
1 parent 73540ef commit 3bcdd50
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions frontend/src/screens/BackupNode.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { InfoCircledIcon } from "@radix-ui/react-icons";
import { AlertTriangleIcon } from "lucide-react";
import { AlertTriangleIcon, ExternalLinkIcon } from "lucide-react";
import React, { useState } from "react";
import { useNavigate } from "react-router-dom";

import Container from "src/components/Container";
import ExternalLink from "src/components/ExternalLink";
import SettingsHeader from "src/components/SettingsHeader";
import { Alert, AlertDescription, AlertTitle } from "src/components/ui/alert";
import { Button } from "src/components/ui/button";
import { Button, LinkButton } from "src/components/ui/button";
import { Input } from "src/components/ui/input";
import { Label } from "src/components/ui/label";
import { LoadingButton } from "src/components/ui/loading-button";
Expand Down Expand Up @@ -109,6 +110,15 @@ export function BackupNode() {
again to restore your backup.
</AlertDescription>
</Alert>
<div className="mb-5">
<ExternalLink
className="underline flex items-center"
to="https://guides.getalby.com/user-guide/alby-account-and-browser-extension/alby-hub/faq-alby-hub/how-can-i-migrate-alby-hub-to-a-different-machine"
>
Learn more about migrating your node
<ExternalLinkIcon className="w-4 h-4 ml-2" />
</ExternalLink>
</div>
{showPasswordScreen ? (
<Container>
<h1 className="text-xl font-medium">Enter unlock password</h1>
Expand All @@ -135,7 +145,7 @@ export function BackupNode() {
</form>
</Container>
) : (
<div className="flex justify-center">
<div className="flex flex-col gap-5 items-center justify-center">
<Button
type="submit"
disabled={loading}
Expand All @@ -145,6 +155,15 @@ export function BackupNode() {
>
Create Backup To Migrate Node
</Button>
<p className="text-muted-foreground">or</p>
<LinkButton
to="/settings/backup"
variant="secondary"
size="lg"
className="w-full"
>
Backup Without Migrating Node
</LinkButton>
</div>
)}
</>
Expand Down

0 comments on commit 3bcdd50

Please sign in to comment.