From f85cb3140bec8c7435832e4543e964c46232a3ba Mon Sep 17 00:00:00 2001 From: Sampo Tawast <5328394+sirtawast@users.noreply.github.com> Date: Wed, 4 Sep 2024 09:05:02 +0300 Subject: [PATCH] fix(handler): remove unnecessary restrictions for new messages or notes (#3231) --- .../HandlingApplicationActions.tsx | 4 ---- .../HandlingApplicationActionsAhjo.tsx | 9 +-------- .../src/components/sidebar/Sidebar.tsx | 19 +++++++------------ 3 files changed, 8 insertions(+), 24 deletions(-) diff --git a/frontend/benefit/handler/src/components/applicationReview/actions/handlingApplicationActions/HandlingApplicationActions.tsx b/frontend/benefit/handler/src/components/applicationReview/actions/handlingApplicationActions/HandlingApplicationActions.tsx index 40341f832f..54c089bbc4 100644 --- a/frontend/benefit/handler/src/components/applicationReview/actions/handlingApplicationActions/HandlingApplicationActions.tsx +++ b/frontend/benefit/handler/src/components/applicationReview/actions/handlingApplicationActions/HandlingApplicationActions.tsx @@ -159,10 +159,6 @@ const HandlingApplicationActions: React.FC = ({ )} = ({ , diff --git a/frontend/benefit/handler/src/components/sidebar/Sidebar.tsx b/frontend/benefit/handler/src/components/sidebar/Sidebar.tsx index 897ab0e5bd..2150fd7fe9 100644 --- a/frontend/benefit/handler/src/components/sidebar/Sidebar.tsx +++ b/frontend/benefit/handler/src/components/sidebar/Sidebar.tsx @@ -14,7 +14,6 @@ import { useSidebar } from './useSidebar'; interface ComponentProps { isOpen: boolean; messagesReadOnly?: boolean; - notesReadOnly?: boolean; onClose?: () => void; customItemsMessages?: Array; customItemsNotes?: Array; @@ -24,7 +23,6 @@ interface ComponentProps { const Sidebar: React.FC = ({ isOpen, messagesReadOnly, - notesReadOnly, customItemsMessages, customItemsNotes, onClose, @@ -109,16 +107,13 @@ const Sidebar: React.FC = ({ flex-grow: 1; `} > - {!notesReadOnly && ( - - )} - +