Skip to content

New function to calculate user vote value and vote feedback#17

Open
sktbrd wants to merge 19 commits intobgrana75:mainfrom
sktbrd:main
Open

New function to calculate user vote value and vote feedback#17
sktbrd wants to merge 19 commits intobgrana75:mainfrom
sktbrd:main

Conversation

@sktbrd
Copy link
Contributor

@sktbrd sktbrd commented Jan 17, 2025

  • components/homepage/Tweet.tsx: Added useEffect to log voting value and integrated useHiveAccount to fetch and use Hive account details. Introduced a new function calculateVotingPower to 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 the handleVote function to optimistically update the reward amount.
  • components/homepage/Tweet.tsx: Replaced the inline payout value with the rewardAmount state variable to reflect the updated reward amount dynamically.

New function to calculate user vote value:

  • lib/hive/client-functions.ts: Added a new function calculateUserVoteValue to 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 the MyCommunity template, highlighting its purpose and capabilities.

@vercel
Copy link

vercel bot commented Jan 17, 2025

@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.

sktbrd and others added 16 commits February 26, 2025 17:25
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
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.

2 participants