- 
                Notifications
    You must be signed in to change notification settings 
- Fork 6
React Client #1
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
base: develop
Are you sure you want to change the base?
React Client #1
Conversation
| @@ -0,0 +1,316 @@ | |||
| import { Connector } from "wagmi"; | |||
|  | |||
| export type IHive = { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all of this must be in the client. @pranav-singhal do you have them all ?
        
          
                packages/react/src/queries/fees.ts
              
                Outdated
          
        
      | @@ -0,0 +1,20 @@ | |||
| export function getProtocolAndPlatformsFees( | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all queries need to be inside the client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have opened PR #12
It will make it so that all queries are within the client 😄
| @@ -0,0 +1,22 @@ | |||
| import React from 'react'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not seeing this component being used anywhere. Do we need it?
| @@ -0,0 +1,116 @@ | |||
| 'use client'; | |||
|  | |||
| import React, { ContextType } from 'react'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to import react here?
|  | ||
| interface TalentLayerProviderProps { | ||
| children: ReactNode; | ||
| config: ConstructorParameters<typeof TalentLayerClient>[0] & { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anyway to simplify the config here?
Its a little tough to understand what the type is.
Changed (updating) :
TalentLayerContextandTalentLayerProvideruseTalentLayerwhich calls the value for TalentLayerContext for ease of useHooks
useFeesuseMintFeesusePaymentsByServiceusePaymentsForUserusePlatformuseProposaluseProposalsuseReviewsuseServiceuseServicesuseTalentLayeruseUseruseUsers