New function to calculate user vote value and vote feedback#17
Open
sktbrd wants to merge 19 commits intobgrana75:mainfrom
Open
New function to calculate user vote value and vote feedback#17sktbrd wants to merge 19 commits intobgrana75:mainfrom
sktbrd wants to merge 19 commits intobgrana75:mainfrom
Conversation
|
@sktbrd is attempting to deploy a commit to the bgrana75's projects Team on Vercel. A member of the Team first needs to authorize it. |
…hen no images are found
…roved sidebar appearance
feat: add gay theme to theme provider and define its styles
…stCard component; enhance navigation error logging in Sidebar
…sing and transformation functions for improved video embedding
Updated dependencies to fix Next.js and React CVE vulnerabilities. The fix-react2shell-next tool automatically updated the following packages to their secure versions: - next - react-server-dom-webpack - react-server-dom-parcel - react-server-dom-turbopack All package.json files have been scanned and vulnerable versions have been patched to the correct fixed versions based on the official React advisory. Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
…vu-n3f4t1 Fix React Server Components CVE vulnerabilities
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
components/homepage/Tweet.tsx: AddeduseEffectto log voting value and integrateduseHiveAccountto fetch and use Hive account details. Introduced a new functioncalculateVotingPowerto compute the voting power based on the user's Hive account data. [1] [2]components/homepage/Tweet.tsx: Added logging statements to track voting power, voting value, slider value, and reward amount. Updated thehandleVotefunction to optimistically update the reward amount.components/homepage/Tweet.tsx: Replaced the inline payout value with therewardAmountstate variable to reflect the updated reward amount dynamically.New function to calculate user vote value:
lib/hive/client-functions.ts: Added a new functioncalculateUserVoteValueto compute the voting value for a user based on their Hive account details and the current reward fund and feed history.Documentation update:
README.md: Added a brief description of theMyCommunitytemplate, highlighting its purpose and capabilities.