mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-19 07:14:22 +01:00
Only show the beta warning for mainnet
This commit is contained in:
committed by
Tony Giorgio
parent
7cf0ee7d20
commit
2d69edd78d
@@ -3,6 +3,7 @@ import { ParentComponent, createSignal } from "solid-js";
|
|||||||
import { DIALOG_CONTENT, DIALOG_POSITIONER, OVERLAY } from "./DetailsModal";
|
import { DIALOG_CONTENT, DIALOG_POSITIONER, OVERLAY } from "./DetailsModal";
|
||||||
import { ModalCloseButton, SmallHeader } from "./layout";
|
import { ModalCloseButton, SmallHeader } from "./layout";
|
||||||
import { ExternalLink } from "./layout/ExternalLink";
|
import { ExternalLink } from "./layout/ExternalLink";
|
||||||
|
import { getExistingSettings } from "~/logic/mutinyWalletSetup";
|
||||||
|
|
||||||
export function BetaWarningModal() {
|
export function BetaWarningModal() {
|
||||||
return (
|
return (
|
||||||
@@ -40,7 +41,8 @@ export const WarningModal: ParentComponent<{
|
|||||||
title: string;
|
title: string;
|
||||||
}> = (props) => {
|
}> = (props) => {
|
||||||
const [open, setOpen] = createSignal(
|
const [open, setOpen] = createSignal(
|
||||||
localStorage.getItem("betaWarned") !== "true"
|
localStorage.getItem("betaWarned") !== "true" &&
|
||||||
|
getExistingSettings().network === "bitcoin"
|
||||||
);
|
);
|
||||||
|
|
||||||
function close() {
|
function close() {
|
||||||
|
|||||||
Reference in New Issue
Block a user