vocdoni / interoperability

Private repository to manage the interoperability between protocol, API, SDK, UIs and documentation
1 stars 0 forks source link

Share options in the voting page #148

Closed jpaulet closed 3 months ago

jpaulet commented 4 months ago

As voter I want to have a easy way to share the voting process to others.

Add a new "Share" button in the public voting page, that allows the voter to:

When clicked, a modal appear: image

With the following share options:

Make sure to share ONLY the URL part without the # if present (to prevent sharing the PK if we use the auth with PK in the URL).

selankon commented 3 months ago

We can use https://www.npmjs.com/package/react-share

selankon commented 3 months ago

It actually exists a "share" component when voted, we should just adapt this

https://github.com/vocdoni/ui-scaffold/blob/78edc9847e53bc94556fb9fa0222cf2fdd321dc4/src/components/Process/View.tsx#L158

image