Skip to content

Commit

Permalink
remove beta disclaimers
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul committed Feb 16, 2024
1 parent 713abec commit a5ffa66
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 121 deletions.
73 changes: 0 additions & 73 deletions src/components/BetaWarningModal.tsx

This file was deleted.

9 changes: 3 additions & 6 deletions src/components/ReceiveWarnings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function ReceiveWarnings(props: {
return undefined;
};

const betaWarning = () => {
const sillyAmountWarning = () => {
const parsed = Number(props.amountSats);
if (isNaN(parsed)) {
return undefined;
Expand All @@ -59,16 +59,13 @@ export function ReceiveWarnings(props: {
if (parsed >= 2099999997690000) {
// If over 21 million bitcoin, warn that too much
return i18n.t("receive.amount_editable.more_than_21m");
} else if (parsed >= 4000000) {
// If over 4 million sats, warn that it's a beta bro
return i18n.t("receive.amount_editable.too_big_for_beta");
}
};

return (
<Switch>
<Match when={betaWarning()}>
<InfoBox accent="red">{betaWarning()}</InfoBox>
<Match when={sillyAmountWarning()}>
<InfoBox accent="red">{sillyAmountWarning()}</InfoBox>
</Match>
<Match when={warningText()}>
<InfoBox accent="blue">
Expand Down
1 change: 0 additions & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export * from "./ActivityItem";
export * from "./Amount";
export * from "./AmountEditable";
export * from "./BalanceBox";
export * from "./BetaWarningModal";
export * from "./ChooseCurrency";
export * from "./ChooseLanguage";
export * from "./ContactEditor";
Expand Down
17 changes: 2 additions & 15 deletions src/i18n/en/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ export default {
"A lightning setup fee might be deducted from the requested amount.",
setup_fee_lightning:
"A lightning setup fee will be charged if paid over lightning.",
too_big_for_beta:
"That's a lot of sats. You do know Mutiny Wallet is still in beta, yeah?",
more_than_21m: "There are only 21 million bitcoin.",
set_amount: "Set amount",
max: "MAX",
Expand Down Expand Up @@ -244,7 +242,7 @@ export default {
settings: {
header: "Settings",
support: "Learn how to support Mutiny",
beta_features: "BETA FEATURES",
experimental_features: "Experiments",
debug_tools: "DEBUG TOOLS",
danger_zone: "Danger zone",
general: "General",
Expand Down Expand Up @@ -487,7 +485,7 @@ export default {
satisfaction: "Smug satisfaction",
gifting: "Gifting",
multi_device: "Multi-device access",
ios_beta_access: "iOS beta access",
ios_testflight: "iOS TestFlight access",
more: "... and more to come",
cta_description:
"Enjoy early access to new features and premium functionality.",
Expand Down Expand Up @@ -738,17 +736,6 @@ export default {
not_available: "We don't do that yet",
secure_your_funds: "Secure your funds"
},
beta_warning: {
title: "Warning: beta software",
beta_warning:
"We're so glad you're here. But we do want to warn you: Mutiny Wallet is in beta, and there are still bugs and rough edges.",
be_careful:
"Please be careful and don't put more money into Mutiny than you're willing to lose.",
beta_link: "Learn more about the beta",
pretend_money:
"If you want to use pretend money to test out Mutiny without risk,",
signet_link: "check out our Signet version."
},
more_info: {
whats_with_the_fees: "What's with the fees?",
self_custodial:
Expand Down
15 changes: 1 addition & 14 deletions src/i18n/ko/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ export default {
"첫 라이트닝 받기는 {{amount}} SATS 이상이어야 합니다. 요청한 금액에서 설정 비용이 차감됩니다.",
setup_fee_lightning:
"라이트닝으로 지불하는 경우 라이트닝 설치 비용이 부과됩니다.",
too_big_for_beta:
"많은 SATS입니다. Mutiny Wallet이 여전히 베타 버전임을 알고 계시겠죠?",
more_than_21m: "비트코인은 총 2,100만 개밖에 없습니다.",
set_amount: "금액 설정",
max: "최대",
Expand Down Expand Up @@ -183,7 +181,7 @@ export default {
header: "설정",
support: "Mutiny 지원 방법 알아보기",
general: "일반",
beta_features: "베타 기능",
experimental_features: "실험",
debug_tools: "디버그 도구",
danger_zone: "위험 지역",
admin: {
Expand Down Expand Up @@ -495,17 +493,6 @@ export default {
not_available: "아직 이 기능은 지원하지 않습니다",
secure_your_funds: "자금을 안전하게 보호하세요"
},
beta_warning: {
title: "경고: 베타 버전 소프트웨어",
beta_warning:
"저희가 여러분을 여기서 맞이할 수 있게 되어 기쁩니다. 그러나 경고하고 싶습니다: Mutiny Wallet은 베타 버전이며 여전히 버그와 미흡한 점이 있을 수 있습니다.",
be_careful:
"Mutiny에 지금보다 더 많은 자금을 투자하지 않도록 주의하세요.",
beta_Link: "베타 버전에 대해 자세히 알아보기",
pretend_money:
"위험 없이 Mutiny를 테스트하려면 가상 자금을 사용하려면",
signet_link: "Signet 버전을 확인하세요."
},
more_info: {
whats_with_the_fees: "수수료는 어떻게 되나요?",
self_custodial:
Expand Down
2 changes: 0 additions & 2 deletions src/routes/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import scan from "~/assets/icons/scan.svg";
import settings from "~/assets/icons/settings.svg";
import {
BalanceBox,
BetaWarningModal,
Card,
CombinedActivity,
DecryptDialog,
Expand Down Expand Up @@ -106,7 +105,6 @@ export function Main() {
</div>
</DefaultMain>
<DecryptDialog />
<BetaWarningModal />
<HomePrompt />
<NavBar activeTab="home" />
</SafeArea>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/settings/Plus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ function Perks(props: { alreadySubbed?: boolean }) {
<li>
<Show
when={props.alreadySubbed}
fallback={i18n.t("settings.plus.ios_beta_access")}
fallback={i18n.t("settings.plus.ios_testflight")}
>
<ExternalLink href="https://testflight.apple.com/join/9g23f0Mc">
{i18n.t("settings.plus.ios_beta_access")}
{i18n.t("settings.plus.ios_testflight")}
</ExternalLink>
</Show>
</li>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/settings/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function Settings() {
]}
/>
<SettingsLinkList
header={i18n.t("settings.beta_features")}
header={i18n.t("settings.experimental_features")}
links={[
{
href: "/settings/connections",
Expand Down
7 changes: 0 additions & 7 deletions src/state/megaStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ type MegaStore = [
safe_mode?: boolean;
npub?: string;
preferredInvoiceType: "unified" | "lightning" | "onchain";
betaWarned: boolean;
testflightPromptDismissed: boolean;
should_zap_hodl: boolean;
federations?: MutinyFederationIdentity[];
Expand All @@ -94,7 +93,6 @@ type MegaStore = [
onError: (e: Error) => void,
onSuccess: (value: ParsedParams) => void
): void;
setBetaWarned(): void;
setTestFlightPromptDismissed(): void;
toggleHodl(): void;
dropMutinyWallet(): void;
Expand Down Expand Up @@ -137,7 +135,6 @@ export const Provider: ParentComponent = (props) => {
lang: localStorage.getItem("i18nexLng") || undefined,
npub: localStorage.getItem("npub") || undefined,
preferredInvoiceType: "unified" as "unified" | "lightning" | "onchain",
betaWarned: localStorage.getItem("betaWarned") === "true",
should_zap_hodl: localStorage.getItem("should_zap_hodl") === "true",
testflightPromptDismissed:
localStorage.getItem("testflightPromptDismissed") === "true",
Expand Down Expand Up @@ -410,10 +407,6 @@ export const Provider: ParentComponent = (props) => {
}
}
},
setBetaWarned() {
localStorage.setItem("betaWarned", "true");
setState({ betaWarned: true });
},
setTestFlightPromptDismissed() {
localStorage.setItem("testflightPromptDismissed", "true");
setState({ testflightPromptDismissed: true });
Expand Down

0 comments on commit a5ffa66

Please sign in to comment.