diff --git a/js/src/forum/components/Poll/PollOptions.tsx b/js/src/forum/components/Poll/PollOptions.tsx index 6823b2a2..64291ab4 100644 --- a/js/src/forum/components/Poll/PollOptions.tsx +++ b/js/src/forum/components/Poll/PollOptions.tsx @@ -6,53 +6,15 @@ import ItemList from 'flarum/common/utils/ItemList'; export default class PollOptions extends Component { view(): Mithril.Children { - return ( -
- - {this.pollOptions().toArray()} - -
- ); + return
{this.pollOptions().toArray()}
; } pollOptions(): ItemList { const items = new ItemList(); - items.add('test', ); + items.add('test1', ); + items.add('test2', ); + items.add('test3', ); return items; } diff --git a/js/src/forum/components/Poll/PollSubmitButton.tsx b/js/src/forum/components/Poll/PollSubmitButton.tsx index 3a87ed7e..7e8c12cc 100644 --- a/js/src/forum/components/Poll/PollSubmitButton.tsx +++ b/js/src/forum/components/Poll/PollSubmitButton.tsx @@ -5,9 +5,13 @@ import Button from 'flarum/common/components/Button'; export default class PollSubmitButton extends Component { view(): Mithril.Children { return ( - ); } + + submit() { + console.log('submitted'); + } }