From 00b4a0cce23bd30e1798481593afca93290904b0 Mon Sep 17 00:00:00 2001 From: Martin Berka Date: Mon, 3 Nov 2025 14:05:01 +0100 Subject: [PATCH] =?UTF-8?q?Oprava/narovn=C3=A1n=C3=AD=20ikony=20kop=C3=ADr?= =?UTF-8?q?ov=C3=A1n=C3=AD=20pozn=C3=A1mky?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/App.tsx | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index 530306b..793df57 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -541,19 +541,12 @@ function App() { } {login} {userPayload.departureTime && ({userPayload.departureTime})} - {userPayload.note && copyNote(userPayload.note!)} - onKeyDown={(e) => { - if (e.key === 'Enter' || e.key === ' ') { - e.preventDefault(); - copyNote(userPayload.note!); - } - }} - tabIndex={0} - role="button" - > ({userPayload.note}) } + {userPayload.note && ({userPayload.note})} + {login !== auth.login && canChangeChoice && + { + copyNote(userPayload.note!); + }} className='action-icon' icon={faComment} /> + } {login === auth.login && canChangeChoice && { setNoteModalOpen(true);