Skip to content

Commit

Permalink
fix: add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed Jul 22, 2024
1 parent d97a015 commit 28bf7d3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions frontend/src/screens/setup/ImportMnemonic.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as bip39 from "@scure/bip39";
import { wordlist } from "@scure/bip39/wordlists/english";
import { LifeBuoy, ShieldCheck } from "lucide-react";
import { AlertTriangleIcon, LifeBuoy, ShieldCheck } from "lucide-react";
import { useEffect, useState } from "react";
import { useNavigate } from "react-router-dom";

import MnemonicInputs from "src/components/MnemonicInputs";
import TwoColumnLayoutHeader from "src/components/TwoColumnLayoutHeader";
import { Alert } from "src/components/ui/alert";
import { Alert, AlertDescription, AlertTitle } from "src/components/ui/alert";
import { Button } from "src/components/ui/button";
import { useToast } from "src/components/ui/use-toast";
import useSetupStore from "src/state/SetupStore";
Expand Down Expand Up @@ -61,6 +61,16 @@ export function ImportMnemonic() {
description="Enter the your Master Key recovery phrase to import your Alby Hub."
/>

<Alert>
<AlertTriangleIcon className="h-4 w-4" />
<AlertTitle>
Do not re-use the same key on multiple devices
</AlertTitle>
<AlertDescription>
If you want to transfer your existing Hub to another machine please
use the migrate feature from the Alby Hub settings.
</AlertDescription>
</Alert>
<Alert>
<div className="flex flex-col gap-4">
<div className="flex gap-2 items-center">
Expand Down

0 comments on commit 28bf7d3

Please sign in to comment.