Skip to content

Commit

Permalink
chore: update inscription text (#169)
Browse files Browse the repository at this point in the history
* chore: update inscription text
  • Loading branch information
jrwbabylonlab authored Jan 3, 2025
1 parent 9ec6e57 commit 0401e47
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-houses-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@babylonlabs-io/bbn-wallet-connect": patch
---

update inscription text
42 changes: 29 additions & 13 deletions src/components/Inscriptions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,50 @@ export interface Props {
config?: BTCConfig;
}

export function Inscriptions({ className, onSubmit }: Props) {
export function Inscriptions({ className, onSubmit, config }: Props) {
const [lockInscriptions = true, toggleInscriptions] = useState<boolean | undefined>();
const [showAgain = true, toggleShowAgain] = useState<boolean | undefined>();

if (!config) return null;

const { coinName } = config;

return (
<div className={twMerge("b-mb-8 b-flex b-flex-1 b-flex-col", className)}>
<DialogHeader title="Bitcoin Inscriptions" className="b-mb-8">
<Text className="b-mb-6">
This staking interface attempts to detect bitcoin ordinals, NFTs, Runes, and other inscriptions
(“Inscriptions”) within the Unspent Transaction Outputs (“UTXOs”) in your wallet. If you stake bitcoin with
Inscriptions, those UTXOs may be spent on staking, unbonding, or withdrawal fees, which will cause you to lose
those Inscriptions permanently. This interface will not detect all Inscriptions.
</Text>

<Text>Chose one: (you can change this later)</Text>
<DialogHeader title={`Manage ${coinName} Inscriptions`} className="b-mb-8">
<br />
<div className="b-mb-6">
<Text>
By default, we will not use {coinName} that contains Inscriptions - such as Ordinals, NFTs, or Runes - in
your stakeable balance. This helps prevent any accidental loss of your Inscriptions due to staking,
unbonding, or withdrawal fees.
</Text>
<br />
<Text>
If you would like to include {coinName} with Inscriptions in your stakeable balance, please select the
option below.
</Text>
</div>
</DialogHeader>

<DialogBody>
<form action="">
<FieldControl
label="Lock bitcoin UTXOs with detected Inscriptions so they will not be spent."
label={
<>
<strong>Do not use</strong> {coinName} with Inscriptions for staking. (Recommended)
</>
}
className="b-mb-8"
>
<Radio name="inscriptions" checked={lockInscriptions} onChange={() => toggleInscriptions(true)} />
</FieldControl>

<FieldControl
label="Unlock bitcoin UTXOs with detected Inscriptions in my stakable balance. I understand and agree that doing so can cause the complete and permanent loss of Inscriptions and that I am solely liable and responsible for their loss."
label={
<>
<strong>Use</strong> {coinName} with Inscriptions in my stakable balance.
</>
}
className="b-mb-8"
>
<Radio name="inscriptions" checked={!lockInscriptions} onChange={() => toggleInscriptions(false)} />
Expand Down

0 comments on commit 0401e47

Please sign in to comment.