diff --git a/js/src/forum/components/Poll.tsx b/js/src/forum/components/Poll.tsx index d7407844..7d0ff79c 100644 --- a/js/src/forum/components/Poll.tsx +++ b/js/src/forum/components/Poll.tsx @@ -1,12 +1,16 @@ import * as Mithril from 'mithril'; import Component from 'flarum/common/Component'; +import PollTitle from './Poll/PollTitle'; +import PollDescription from './Poll/PollDescription'; +import PollOption from './Poll/PollOption'; +import PollSubmitButton from './Poll/PollSubmitButton'; export default class IndexPolls extends Component { view(): Mithril.Children { return (
- Polls -

Lorem Ipsum Dolor Sit amet Consectetur Adipiscing Elit

+ +
Privacy setting @@ -29,24 +33,7 @@ export default class IndexPolls extends Component { - +
+ diff --git a/js/src/forum/components/Poll/PollDescription.tsx b/js/src/forum/components/Poll/PollDescription.tsx new file mode 100644 index 00000000..9f0bc11e --- /dev/null +++ b/js/src/forum/components/Poll/PollDescription.tsx @@ -0,0 +1,12 @@ +import * as Mithril from 'mithril'; +import Component from 'flarum/common/Component'; + +export default class PollDescription extends Component { + view(): Mithril.Children { + return ( + <> +

Lorem Ipsum Dolor Sit amet Consectetur Adipiscing Elit Sit

+ + ); + } +} diff --git a/js/src/forum/components/Poll/PollImage.tsx b/js/src/forum/components/Poll/PollImage.tsx new file mode 100644 index 00000000..e69de29b diff --git a/js/src/forum/components/Poll/PollOption.tsx b/js/src/forum/components/Poll/PollOption.tsx new file mode 100644 index 00000000..90c0e666 --- /dev/null +++ b/js/src/forum/components/Poll/PollOption.tsx @@ -0,0 +1,27 @@ +import * as Mithril from 'mithril'; +import Component from 'flarum/common/Component'; + +export default class PollOption extends Component { + view(): Mithril.Children { + return ( + + ); + } +} diff --git a/js/src/forum/components/Poll/PollSubmitButton.tsx b/js/src/forum/components/Poll/PollSubmitButton.tsx new file mode 100644 index 00000000..3a87ed7e --- /dev/null +++ b/js/src/forum/components/Poll/PollSubmitButton.tsx @@ -0,0 +1,13 @@ +import * as Mithril from 'mithril'; +import Component from 'flarum/common/Component'; +import Button from 'flarum/common/components/Button'; + +export default class PollSubmitButton extends Component { + view(): Mithril.Children { + return ( + + ); + } +} diff --git a/js/src/forum/components/Poll/PollTitle.tsx b/js/src/forum/components/Poll/PollTitle.tsx new file mode 100644 index 00000000..b2848f3d --- /dev/null +++ b/js/src/forum/components/Poll/PollTitle.tsx @@ -0,0 +1,12 @@ +import * as Mithril from 'mithril'; +import Component from 'flarum/common/Component'; + +export default class PollTitle extends Component { + view(): Mithril.Children { + return ( + <> +

Polls Title

+ + ); + } +}