neynarxyz / react

React SDK for Farcaster components - powered by Neynar APIs
https://neynar-react.vercel.app
MIT License
19 stars 14 forks source link

add: like and recast reactions to `NeynarCastCard` #9

Closed dylsteck closed 2 months ago

dylsteck commented 2 months ago

this PR adds like and recast actions to the NeynarCastCard component by using Sign In with Neynar

the flow is as follows:

two notes: 1) this doesn't support commenting yet but will in the future 2) with allowReactions set to true, you can also override any of the onComment, onRecast, or onLike functions yourself -- but if not then onRecast and onLike will default to the SIWN experience(demo'd below)

https://github.com/neynarxyz/react/assets/12853808/69cc739f-5bf2-4ccc-9fd7-4450cc9f0565

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 5, 2024 3:09pm
dylsteck commented 2 months ago

@Shreyaschorge i made most of the changes from the comments you left(made one small comment) and will work on following the atomic design structures more going forward. i just need to make one more change on the auth popover on Reactions.tsx and then this PR should be good to be reviewed again.

dylsteck commented 2 months ago

just updated the PR to address the comments & also changed the styling of the auth Popover (below)

Screenshot 2024-07-05 at 10 45 23 AM