Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add React Library #77

Merged
merged 9 commits into from
Oct 22, 2024
Merged

feat: Add React Library #77

merged 9 commits into from
Oct 22, 2024

Conversation

alexlwn123
Copy link
Member

@alexlwn123 alexlwn123 commented Oct 21, 2024

This pull request introduces a React package. It includes the addition of a new context for the Fedimint Wallet, a custom hook for balance management, and updates to the project configuration files.

New Features:

  • Added FedimintWalletContext and FedimintWalletProvider to manage the Fedimint Wallet state in the React application (packages/react/lib/contexts/FedimintWalletContext.tsx).
  • Introduced useBalance hook to subscribe to and manage the wallet balance (packages/react/lib/hooks/useBalance.ts).
  • Introduced useOpenWallet hook.
  • Introduced useSendLightning and useReceiveLightning hooks.

Application Updates:

  • Updated App.tsx to use the new useBalance hook and display the wallet balance (packages/react/src/App.tsx).

Copy link

changeset-bot bot commented Oct 21, 2024

🦋 Changeset detected

Latest commit: 0eb825d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@fedimint/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Oct 21, 2024

Size Change: +31 B (0%)

Total Size: 7.46 MB

Filename Size Change
packages/core-web/dist/index.js 2.47 kB +31 B (+1.27%)
ℹ️ View Unchanged
Filename Size
packages/core-web/dist/worker.js 679 B
packages/react/dist/fedimint-react.js 1 kB
packages/wasm-bundler/fedimint_client_wasm_bg.wasm 3.73 MB
packages/wasm-web/fedimint_client_wasm_bg.wasm 3.73 MB

compressed-size-action

@alexlwn123 alexlwn123 marked this pull request as ready for review October 22, 2024 12:41
@alexlwn123 alexlwn123 merged commit a8c7f1d into main Oct 22, 2024
8 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant