From 5223e0d5f5c575300b7dc4f618d0b4699069443a Mon Sep 17 00:00:00 2001 From: mkljczk Date: Sun, 29 Dec 2024 23:47:45 +0100 Subject: [PATCH] =?UTF-8?q?pl-fe:=C2=A0update=20en.json=20+=20this=20doesn?= =?UTF-8?q?'t=20need=20to=20be=20a=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkljczk --- .../src/features/interaction-policies/index.tsx | 16 ++++++---------- packages/pl-fe/src/locales/en.json | 5 +++++ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/packages/pl-fe/src/features/interaction-policies/index.tsx b/packages/pl-fe/src/features/interaction-policies/index.tsx index 61e5aced7..6034c8e4d 100644 --- a/packages/pl-fe/src/features/interaction-policies/index.tsx +++ b/packages/pl-fe/src/features/interaction-policies/index.tsx @@ -167,15 +167,6 @@ const InteractionPolicies = () => { }); }; - const renderPolicy = (visibility: 'public' | 'unlisted' | 'private') => ( - handleChange(visibility, ...props)} - disabled={isUpdating} - /> - ); - return (
@@ -199,7 +190,12 @@ const InteractionPolicies = () => { activeItem={visibility} /> - {renderPolicy(visibility)} + handleChange(visibility, ...props)} + disabled={isUpdating} + />