Merge branch 'poll-hint' into 'develop'

Polls: Hide multiple options hint if already voted

See merge request soapbox-pub/soapbox-fe!1587
This commit is contained in:
marcin mikołajczak 2022-06-30 12:15:16 +00:00
commit 891e844792

View file

@ -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