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:
commit
891e844792
|
@ -67,13 +67,13 @@ const Poll: React.FC<IPoll> = ({ id, status }): JSX.Element | null => {
|
||||||
return (
|
return (
|
||||||
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
||||||
<div onClick={e => e.stopPropagation()}>
|
<div onClick={e => e.stopPropagation()}>
|
||||||
{poll.multiple && (
|
{!showResults && poll.multiple && (
|
||||||
<Text theme='muted' size='sm'>
|
<Text theme='muted' size='sm'>
|
||||||
{intl.formatMessage(messages.multiple)}
|
{intl.formatMessage(messages.multiple)}
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<Stack space={4} className={classNames('mt-4')}>
|
<Stack space={4} className='mt-4'>
|
||||||
<Stack space={2}>
|
<Stack space={2}>
|
||||||
{poll.options.map((option, i) => (
|
{poll.options.map((option, i) => (
|
||||||
<PollOption
|
<PollOption
|
||||||
|
|
Loading…
Reference in New Issue