Polls: Hide multiple options hint if already voted
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
68b0e3bf35
commit
60f6bff306
|
@ -67,13 +67,13 @@ const Poll: React.FC<IPoll> = ({ id, status }): JSX.Element | null => {
|
|||
return (
|
||||
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
||||
<div onClick={e => e.stopPropagation()}>
|
||||
{poll.multiple && (
|
||||
{!showResults && poll.multiple && (
|
||||
<Text theme='muted' size='sm'>
|
||||
{intl.formatMessage(messages.multiple)}
|
||||
</Text>
|
||||
)}
|
||||
|
||||
<Stack space={4} className={classNames('mt-4')}>
|
||||
<Stack space={4} className='mt-4'>
|
||||
<Stack space={2}>
|
||||
{poll.options.map((option, i) => (
|
||||
<PollOption
|
||||
|
|
Loading…
Reference in New Issue