mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
feat(Polls): Display creator name for polls
This commit is contained in:
@@ -9,6 +9,7 @@ import type { AbstractProps } from '../AbstractPollAnswer';
|
||||
|
||||
const PollAnswer = (props: AbstractProps) => {
|
||||
const {
|
||||
creatorName,
|
||||
checkBoxStates,
|
||||
poll,
|
||||
setCheckbox,
|
||||
@@ -25,6 +26,9 @@ const PollAnswer = (props: AbstractProps) => {
|
||||
<div className = 'poll-question'>
|
||||
<span>{ poll.question }</span>
|
||||
</div>
|
||||
<div className = 'poll-creator'>
|
||||
{ t('polls.by', { name: creatorName }) }
|
||||
</div>
|
||||
</div>
|
||||
<ol className = 'poll-answer-list'>
|
||||
{
|
||||
|
||||
@@ -16,6 +16,7 @@ const PollResults = (props: AbstractProps) => {
|
||||
const {
|
||||
answers,
|
||||
changeVote,
|
||||
creatorName,
|
||||
haveVoted,
|
||||
showDetails,
|
||||
question,
|
||||
@@ -29,6 +30,9 @@ const PollResults = (props: AbstractProps) => {
|
||||
<div className = 'poll-question'>
|
||||
<strong>{ question }</strong>
|
||||
</div>
|
||||
<div className = 'poll-creator'>
|
||||
{ t('polls.by', { name: creatorName }) }
|
||||
</div>
|
||||
</div>
|
||||
<ol className = 'poll-result-list'>
|
||||
{answers.map(({ name, percentage, voters, voterCount }, index) =>
|
||||
|
||||
Reference in New Issue
Block a user