-
-
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.
feat: implement prototype of how results are shown
- Loading branch information
1 parent
62ae284
commit bbc5d09
Showing
6 changed files
with
81 additions
and
9 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
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,29 @@ | ||
import * as Mithril from 'mithril'; | ||
import Component from 'flarum/common/Component'; | ||
import PollOptionLabel from './PollOptionLabel'; | ||
|
||
export default class PollResults extends Component { | ||
view(): Mithril.Children { | ||
return ( | ||
<label className="PollResult"> | ||
<input | ||
type="radio" | ||
name="privacy-setting" | ||
value="Private to Project Members" | ||
className="PollOption-input" | ||
style="opacity: 0;" | ||
aria-labelledby="privacy-setting-1-label" | ||
aria-describedby="privacy-setting-1-description" | ||
/> | ||
<span className="PollResult-information"> | ||
<div className="PollResults-row"> | ||
<PollOptionLabel text="Poll Option Label" /> | ||
<span className="PollResult-number">76 %</span> | ||
</div> | ||
|
||
<input type="range" min="0" max="100" value="76" step="1" className="PollResult-input" /> | ||
</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
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