-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c07cd44
commit 62ae284
Showing
6 changed files
with
32 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import * as Mithril from 'mithril'; | ||
import Component from 'flarum/common/Component'; | ||
import Component, { ComponentAttrs } from 'flarum/common/Component'; | ||
|
||
export default class PollDescription extends Component { | ||
interface PollDescriptionAttrs extends ComponentAttrs { | ||
text: String; | ||
} | ||
|
||
export default class PollDescription extends Component<PollDescriptionAttrs> { | ||
view(): Mithril.Children { | ||
return ( | ||
<> | ||
<p className="PollOption-description">Lorem Ipsum Dolor Sit amet Consectetur Adipiscing Elit Sit</p> | ||
</> | ||
); | ||
return <p className="PollOption-description">{this.attrs.text}</p>; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import * as Mithril from 'mithril'; | ||
import Component from 'flarum/common/Component'; | ||
import Component, { ComponentAttrs } from 'flarum/common/Component'; | ||
|
||
export default class PollTitle extends Component { | ||
interface PollTitleAttrs extends ComponentAttrs { | ||
text: String; | ||
} | ||
|
||
export default class PollTitle extends Component<PollTitleAttrs> { | ||
view(): Mithril.Children { | ||
return ( | ||
<> | ||
<p>Polls Title</p> | ||
</> | ||
); | ||
return <p>{this.attrs.text}</p>; | ||
} | ||
} |