mazipan / tanyaaja.in

❓Kumpulkan pertanyaan secara anonim dari siapa saja dengan mudah
https://tanyaaja.in
MIT License
134 stars 36 forks source link

FEAT: Move Private public button to the list #72

Closed rickvian closed 11 months ago

rickvian commented 11 months ago

Closes #56

Description

Move toggle private public to the list, all toggle performed independently

each list item have toggle button that triggers Public / private

2023-10-14 13 51 07

Current Tasks

vercel[bot] commented 11 months ago

Someone is attempting to deploy a commit to a Personal Account owned by @mazipan on Vercel.

@mazipan first needs to authorize it.

mazipan commented 11 months ago

How about put it on the right-top corner? Align with the title.

mazipan commented 11 months ago

Also I am thinking about make separate component for this Action.

Let say PublicAccessToggler.tsx.

So the Mutation will be inside this Component, not in the Card itself.

rickvian commented 11 months ago

-moved to top right along with title -extract out toggle component and its mutation,

state updater still need to stay on the caller component because only parent has knowledge to which queryClient that it has to update

2023-10-14 14 16 33

vercel[bot] commented 11 months ago

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

Name Status Preview Comments Updated (UTC)
tanyaaja ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 14, 2023 9:01am