From 86c17682e9827665bf409418fe2cb60e410ad7f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Thu, 19 May 2022 16:46:32 +0200 Subject: [PATCH] forms can't be disabled, actually MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/components/ui/form/form.tsx | 2 -- app/soapbox/features/import_data/components/csv_importer.tsx | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/soapbox/components/ui/form/form.tsx b/app/soapbox/components/ui/form/form.tsx index 3b02634fac..59ca180b1f 100644 --- a/app/soapbox/components/ui/form/form.tsx +++ b/app/soapbox/components/ui/form/form.tsx @@ -5,8 +5,6 @@ interface IForm { onSubmit?: (event: React.FormEvent) => void, /** Class name override for the
element. */ className?: string, - /** Prevent the form from being submitted. */ - disabled?: boolean, } /** Form element with custom styles. */ diff --git a/app/soapbox/features/import_data/components/csv_importer.tsx b/app/soapbox/features/import_data/components/csv_importer.tsx index 95ae99aba2..aa5937af90 100644 --- a/app/soapbox/features/import_data/components/csv_importer.tsx +++ b/app/soapbox/features/import_data/components/csv_importer.tsx @@ -43,7 +43,7 @@ const CSVImporter: React.FC = ({ messages, action }) => { }; return ( - + {intl.formatMessage(messages.input_label)} {intl.formatMessage(messages.input_hint)}}