-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: break code down into components
- Loading branch information
1 parent
ca72c92
commit 82e0d20
Showing
6 changed files
with
72 additions
and
20 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 |
---|---|---|
@@ -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 ( | ||
<> | ||
<p>Lorem Ipsum Dolor Sit amet Consectetur Adipiscing Elit Sit</p> | ||
</> | ||
); | ||
} | ||
} |
Empty file.
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 |
---|---|---|
@@ -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 ( | ||
<label className="bbb"> | ||
<input | ||
type="radio" | ||
name="privacy-setting" | ||
value="Private to Project Members" | ||
className="ccc" | ||
aria-labelledby="privacy-setting-1-label" | ||
aria-describedby="privacy-setting-1-description" | ||
/> | ||
<span className="ddd"> | ||
<span id="privacy-setting-1-label" className="fff"> | ||
Private to Project Members test | ||
</span> | ||
<span id="privacy-setting-1-description" className="ggg"> | ||
Only members of this project would be able to access | ||
</span> | ||
</span> | ||
</label> | ||
); | ||
} | ||
} |
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 |
---|---|---|
@@ -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 ( | ||
<Button className="Button" type="submit"> | ||
Submit | ||
</Button> | ||
); | ||
} | ||
} |
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 |
---|---|---|
@@ -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 ( | ||
<> | ||
<p>Polls Title</p> | ||
</> | ||
); | ||
} | ||
} |