From 0fa04fccae42c532b0729ccea08ec79e0cf3ef36 Mon Sep 17 00:00:00 2001 From: Martastain Date: Sat, 28 Sep 2024 11:39:20 +0200 Subject: [PATCH] fix: button tooltips --- frontend/src/components/SelectDialog.jsx | 67 +++++++++++++------ frontend/src/containers/Upload.jsx | 2 +- .../src/pages/AssetEditor/AssigneesButton.jsx | 3 +- frontend/src/pages/AssetEditor/EditorNav.jsx | 21 +++--- 4 files changed, 62 insertions(+), 31 deletions(-) diff --git a/frontend/src/components/SelectDialog.jsx b/frontend/src/components/SelectDialog.jsx index 99916b4d..b3da70e0 100644 --- a/frontend/src/components/SelectDialog.jsx +++ b/frontend/src/components/SelectDialog.jsx @@ -35,10 +35,10 @@ BaseOption.defaultProps = { const Option = ({ option, selected, onClick }) => { return ( { +const SelectDialog = ({ + options, + onHide, + selectionMode, + initialValue, + title, +}) => { const [filter, setFilter] = useState('') const [selection, setSelection] = useState({}) @@ -136,20 +142,43 @@ const SelectDialog = ({ options, onHide, selectionMode, initialValue }) => { } const header = ( - <> - -