From ac75129dfa28976e2f5ef06f591120f4e7e2e672 Mon Sep 17 00:00:00 2001 From: Crypto Minion <154598612+jrwbabylonlab@users.noreply.github.com> Date: Thu, 26 Sep 2024 23:19:38 +1000 Subject: [PATCH] chore: hide points FAQ if points url not provided (#177) --- package-lock.json | 4 ++-- package.json | 2 +- src/app/components/FAQ/data/questions.ts | 12 +++++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index e92f5988..f33be58f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "simple-staking", - "version": "0.3.1", + "version": "0.3.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "simple-staking", - "version": "0.3.1", + "version": "0.3.2", "dependencies": { "@babylonlabs-io/btc-staking-ts": "0.3.0", "@bitcoin-js/tiny-secp256k1-asmjs": "2.2.3", diff --git a/package.json b/package.json index b35f0c10..2756104e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-staking", - "version": "0.3.1", + "version": "0.3.2", "private": true, "scripts": { "dev": "next dev", diff --git a/src/app/components/FAQ/data/questions.ts b/src/app/components/FAQ/data/questions.ts index 975b475c..d3214eaa 100644 --- a/src/app/components/FAQ/data/questions.ts +++ b/src/app/components/FAQ/data/questions.ts @@ -1,4 +1,4 @@ -import { shouldDisplayTestingMsg } from "@/config"; +import { shouldDisplayPoints, shouldDisplayTestingMsg } from "@/config"; export interface Question { title: string; @@ -94,11 +94,13 @@ export const questions = ( title: "Are hardware wallets supported?", content: `

Keystone via QR code is the only hardware wallet supporting Bitcoin Staking. Using any other hardware wallet through any means (such as connection to a software/extension/mobile wallet) can lead to permanent inability to withdraw the stake.

`, }, - { - title: "What are the points?", - content: `

We use points to track staking activity. Points are not blockchain tokens. Points do not, and may never, convert to, accrue to, be used as a basis to calculate, or become tokens, other digital assets, or distributions thereof. Points are virtual calculations with no monetary value. Points do not constitute any currency or property of any type and are not redeemable, refundable, or transferable.

`, - }, ]; + if (shouldDisplayPoints()) { + questionList.push({ + title: "What are the points for?", + content: `

We use points to track staking activity. Points are not blockchain tokens. Points do not, and may never, convert to, accrue to, be used as a basis to calculate, or become tokens, other digital assets, or distributions thereof. Points are virtual calculations with no monetary value. Points do not constitute any currency or property of any type and are not redeemable, refundable, or transferable.

`, + }); + } if (shouldDisplayTestingMsg()) { questionList.push({ title: "What is the goal of this testnet?",