Skip to content

Conversation

@marsian83
Copy link
Contributor

@marsian83 marsian83 commented Sep 27, 2023

Changed (updating) :

  • Basic initial setup
  • Created TalentLayerContext and TalentLayerProvider
  • Added useTalentLayer which calls the value for TalentLayerContext for ease of use

Hooks

  • useFees
  • useMintFees
  • usePaymentsByService
  • usePaymentsForUser
  • usePlatform
  • useProposal
  • useProposals
  • useReviews
  • useService
  • useServices
  • useTalentLayer
  • useUser
  • useUsers

@@ -0,0 +1,316 @@
import { Connector } from "wagmi";

export type IHive = {
Copy link
Collaborator

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 ?

@marsian83 marsian83 marked this pull request as ready for review October 4, 2023 07:53
@@ -0,0 +1,20 @@
export function getProtocolAndPlatformsFees(
Copy link
Collaborator

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

Copy link
Contributor Author

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';
Copy link
Contributor

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';
Copy link
Contributor

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] & {
Copy link
Contributor

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.

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.

3 participants