From c2551b9e35f1baca57687c51890233cfa02a1200 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 9 Jun 2022 11:49:17 -0400 Subject: [PATCH 1/2] Revert commit for poll design This reverts commit 2a29a050a60579d398ffc3ed80943249c1a91356. --- app/soapbox/components/status_content.tsx | 6 ++---- app/soapbox/features/compose/components/poll-form.tsx | 8 ++------ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/app/soapbox/components/status_content.tsx b/app/soapbox/components/status_content.tsx index 87ec17298..9cbafa67f 100644 --- a/app/soapbox/components/status_content.tsx +++ b/app/soapbox/components/status_content.tsx @@ -273,13 +273,11 @@ const StatusContent: React.FC = ({ status, expanded = false, onE output.push(); } - const hasPoll = status.poll && typeof status.poll === 'string'; - - if (hasPoll) { + if (status.poll && typeof status.poll === 'string') { output.push(); } - return
{output}
; + return <>{output}; } else { const output = [
{ const maxOptions = pollLimits.get('max_options'); const maxOptionChars = pollLimits.get('max_characters_per_option'); - const handleAddOption = () => { - // autofocus on new input - // use streamfield - onAddOption(''); - }; - + const handleAddOption = () => onAddOption(''); const handleSelectDuration = (value: number) => onChangeSettings(value, isMultiple); const handleToggleMultiple = () => onChangeSettings(expiresIn, !isMultiple); @@ -175,6 +170,7 @@ const PollForm = (props: IPollForm) => { {options.size < maxOptions && (