User workflow
In this section, we will see how the user can activate or deactivate the delegation feature on their dashboard.
1 - The component
Feel free to add the activation wherever you want. Currently, it is added in a popup modal, but it will soon be moved to a dedicated setting section in the user dashboard.
As you can see, we have added the addDelegate
and removeDelegate
functions from the TalentLayerID contract. By triggering these functions, it will call the respective function with two parameters.
user
: is the TalentLayer user IDDelegateAddress
: is the delegate address add by the platform in the .env file
See the Full Code Implemented on Our Demo DAPP
Last updated