From 300efe3259b8384941064fff0c62d7dcf6372526 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 2 May 2022 22:17:23 -0500 Subject: [PATCH] Gate profileFields behind a feature --- app/soapbox/features/edit_profile/index.tsx | 22 +++++++++++---------- app/soapbox/utils/features.ts | 9 +++++++++ 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/app/soapbox/features/edit_profile/index.tsx b/app/soapbox/features/edit_profile/index.tsx index c1bde6d1b..61b43dc06 100644 --- a/app/soapbox/features/edit_profile/index.tsx +++ b/app/soapbox/features/edit_profile/index.tsx @@ -435,16 +435,18 @@ const EditProfile: React.FC = () => { )} - } - hintText={} - values={data.fields_attributes || []} - onChange={handleFieldsChange} - onAddItem={handleAddField} - onRemoveItem={handleRemoveField} - component={ProfileField} - maxItems={maxFields} - /> + {features.profileFields && ( + } + hintText={} + values={data.fields_attributes || []} + onChange={handleFieldsChange} + onAddItem={handleAddField} + onRemoveItem={handleRemoveField} + component={ProfileField} + maxItems={maxFields} + /> + )}