Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ledger): enable ledger for production #51

Merged
merged 2 commits into from
Mar 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 9 additions & 14 deletions components/screens/AddWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ import React from "react";
import { useNavigate } from "react-router-dom";
import internalToast from "@/components/Toast.tsx";
import { v4 as uuid } from "uuid";
import { useSettings } from "@/hooks/useSettings";

export default function AddWallet() {
const { createNewWallet } = useWalletManager();
const navigate = useNavigate();
const [settings] = useSettings();

const onClose = () => navigate("/dashboard");

const newWallet = async () => {
Expand Down Expand Up @@ -62,17 +59,15 @@ export default function AddWallet() {
</button>

{/* Ledger */}
{settings?.preview && (
<button
className="flex w-full items-center justify-between rounded-xl border border-daintree-700 bg-[#1E343D] p-5 hover:border-white"
onClick={() => {
browser.tabs.create({ url: "/popup.html#/import-ledger" });
}}
>
<span className="text-base">Import with Ledger</span>
<i className="hn hn-arrow-right flex-none text-[14px]"></i>
</button>
)}
<button
className="flex w-full items-center justify-between rounded-xl border border-daintree-700 bg-[#1E343D] p-5 hover:border-white"
onClick={() => {
browser.tabs.create({ url: "/popup.html#/import-ledger" });
}}
>
<span className="text-base">Import with Ledger</span>
<i className="hn hn-arrow-right flex-none text-[14px]"></i>
</button>
</div>
</div>
);
Expand Down
Loading