@ -1,8 +1,6 @@
import React , { useCallback } from 'react' ;
import { FlatList , Text , TextStyle , View , ViewStyle } from 'react-native' ;
import { useSelector } from 'react-redux' ;
import { getLocalParticipant } from '../../../base/participants/functions' ;
import Button from '../../../base/ui/components/native/Button' ;
import { BUTTON_TYPES } from '../../../base/ui/constants.native' ;
import AbstractPollResults from '../AbstractPollResults' ;
@ -20,6 +18,7 @@ const PollResults = (props: AbstractProps) => {
const {
answers ,
changeVote ,
creatorName ,
haveVoted ,
question ,
showDetails ,
@ -88,7 +87,6 @@ const PollResults = (props: AbstractProps) => {
) ;
} , [ showDetails ] ) ;
const localParticipant = useSelector ( getLocalParticipant ) ;
/* eslint-disable react/jsx-no-bind */
@ -96,7 +94,7 @@ const PollResults = (props: AbstractProps) => {
< View >
< Text style = { dialogStyles . questionText as TextStyle } > { question } < / Text >
< Text style = { dialogStyles . questionOwnerText as TextStyle } >
{ t ( 'polls.by' , { name : localParticipant?.n ame } ) }
{ t ( 'polls.by' , { name : creatorN ame } ) }
< / Text >
< FlatList
data = { answers }