Closed caxtonacollins closed 6 days ago
@caxtonacollins is attempting to deploy a commit to the LFG Labs Team on Vercel.
A member of the Team first needs to authorize it.
The changes in this pull request primarily involve the addition of a new WalletProvider
component in the app/provider.tsx
file, which wraps the existing QuestsContextProvider
. This modification alters the component hierarchy and introduces wallet management functionality. Additionally, the ProfileCard
component is updated to utilize the useWallet
hook from the new provider, optimizing balance fetching based on account presence. Other changes include consistent formatting updates across multiple files, specifically converting double quotes to single quotes in string literals, and enhancements to TypeScript definitions for better integration with StarkNet.
File | Change Summary |
---|---|
app/provider.tsx | Added WalletProvider component; wrapped QuestsContextProvider inside it; updated string literals to single quotes. |
components/UI/profileCard/profileCard.tsx | Added useWallet hook; optimized formattedAddress with useMemo ; updated string literals to single quotes. |
context/WalletProvider.tsx | Introduced WalletProvider component and useWallet hook; added state management and event listeners for wallet accounts. |
tsconfig.json | Added "types/starknet.d.ts" to the include array. |
types/starknet.d.ts | Added global declaration for Window interface with starknet property and related methods. |
app/[addressOrDomain]/page.tsx | Updated string literals to single quotes; no changes to functionality. |
components/UI/navbar.tsx | Added useWallet import; updated string literals to single quotes; no changes to functionality. |
components/navbar/walletButton.tsx | Updated string literals to single quotes; minor refactoring for consistency; no changes to functionality. |
components/UI/profileCard/profileCard.tsx
involve the addition of the useWallet
hook, which is directly related to the new WalletProvider
component introduced in the main PR.❌ Change request
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@mubarak23 please review
@kfastov @saimeunt @lauchaves, please review
https://github.com/user-attachments/assets/094b4618-17a3-46ff-b3cc-1ea129b93e18
Summary by CodeRabbit
Release Notes
New Features
WalletProvider
component for enhanced wallet management.useWallet
hook to access wallet context within components.Improvements
ProfileCard
component to fetch balance only when an account is connected.Window
interface related to StarkNet.Style