Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/link'
Browse files Browse the repository at this point in the history
  • Loading branch information
benma committed Feb 7, 2024
2 parents c27764e + 69ec455 commit fd02ba4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sandbox/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Demo WebApp project

A live deployment of this demo can be found here: https://digitalbitbox.github.io/bitbox-api-rs/.

This folder contains a React project showcasing the TypeScript API. It has the bitbox-api library in
`../pkg` as a dependency. See how to build this dependency locally at the [main
README](../.github/README.md).
Expand Down
5 changes: 4 additions & 1 deletion sandbox/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function App() {
}
};


if (pairingCode !== undefined) {
return (
<div className="container">
Expand Down Expand Up @@ -88,6 +88,9 @@ function App() {
<button className="menuButton" onClick={() => connect('bridge')}>Connect using BitBoxBridge</button><br />
<button className="menuButton" onClick={() => connect('auto')}>Choose automatically</button>
{err !== undefined && <ErrorNotification message={err.message} code={err.code} onClose={() => setErr(undefined)} /> }
<p>
This sandbox is using the <a href="https://www.npmjs.com/package/bitbox-api">bitbox-api NPM</a> package.
</p>
</div>
);
}
Expand Down

0 comments on commit fd02ba4

Please sign in to comment.