2021-09-23 11:52:20 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2021-09-23 22:08:32 +00:00
|
|
|
-`PollCreation`
|
2021-09-23 11:52:20 +00:00
|
|
|
|
2021-09-23 22:08:32 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
```
|