@waku/poll-sdk-react-components
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

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
}

Readme

Keywords

none

Package Sidebar

Install

npm i @waku/poll-sdk-react-components

Weekly Downloads

2

Version

0.4.0

License

MIT OR Apache-2.0

Unpacked Size

215 kB

Total Files

84

Last publish

Collaborators

  • weboko
  • richard-ramos
  • royerfranck