dappconnect-vote-poll-sdk/packages/poll-react-components
Franck Royer bddbd1359a
Release 0.4.0
2022-01-20 11:40:28 +11:00
..
src Fix lint/core functions and decimals 2022-01-20 01:19:47 +01:00
test Move polling components to poll-react-components 2021-12-07 13:17:58 +11:00
.eslintrc.json Move polling components to poll-react-components 2021-12-07 13:17:58 +11:00
.mocharc.json Move polling components to poll-react-components 2021-12-07 13:17:58 +11:00
README.md Move polling components to poll-react-components 2021-12-07 13:17:58 +11:00
package.json Release 0.4.0 2022-01-20 11:40:28 +11:00
prettier.config.js Move polling components to poll-react-components 2021-12-07 13:17:58 +11:00
tsconfig.json Move polling components to poll-react-components 2021-12-07 13:17:58 +11:00

README.md

This packages contains react components used to display waku polls

Components

-Poll

Components that displays poll as a card

type PollProps = {
  theme: Theme // see react-components theme
  poll: DetailedTimedPoll // see core DetailedTimedPoll
  wakuPolling: WakuPolling | undefined // see core
}

-PollCreation

Modal that creates now polls

type PollCreationProps = {
  theme: Theme
  wakuPolling: WakuPolling | undefined
  setShowPollCreation: (val: boolean) => void // function that shows or hides modal
}

-PollList

A component that shows a list of polls on waku network

type PollListProps = {
  theme: Theme
  wakuPolling: WakuPolling | undefined
  account: string | null | undefined
}