dappconnect-voting-sdk/packages/polling-components
Szymon Szlachtowicz 861feccd67
Update readme (#93)
2021-09-24 00:08:32 +02:00
..
src Refactor polling hooks (#92) 2021-09-23 14:23:38 +02:00
test Change repo to allow proposal in monorepo (#39) 2021-09-02 01:10:14 +02:00
.eslintrc.json Change repo to allow proposal in monorepo (#39) 2021-09-02 01:10:14 +02:00
.mocharc.json Change repo to allow proposal in monorepo (#39) 2021-09-02 01:10:14 +02:00
README.md Update readme (#93) 2021-09-24 00:08:32 +02:00
package.json Remove signer from polling (#91) 2021-09-23 13:52:20 +02:00
prettier.config.js Change repo to allow proposal in monorepo (#39) 2021-09-02 01:10:14 +02:00
tsconfig.json Change repo to allow proposal in monorepo (#39) 2021-09-02 01:10:14 +02: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
}