From 04ca10d8779dd15454920002f3d48afa8830de8a Mon Sep 17 00:00:00 2001 From: Sofien-Sellami <73444179+Sofien-Sellami@users.noreply.github.com> Date: Fri, 22 Sep 2023 20:48:12 +0100 Subject: [PATCH] fix(react-select): update react select package (#3622) --- platform/app/src/routes/WorkList/WorkList.tsx | 2 - platform/ui/package.json | 2 +- platform/ui/src/components/Header/Header.tsx | 1 + platform/ui/src/components/Select/Select.css | 20 +- platform/ui/src/tailwind.css | 47 --- yarn.lock | 299 ++++++++++-------- 6 files changed, 174 insertions(+), 197 deletions(-) diff --git a/platform/app/src/routes/WorkList/WorkList.tsx b/platform/app/src/routes/WorkList/WorkList.tsx index 1b1c048a9..865c6fbb9 100644 --- a/platform/app/src/routes/WorkList/WorkList.tsx +++ b/platform/app/src/routes/WorkList/WorkList.tsx @@ -336,8 +336,6 @@ function WorkList({ >
{appConfig.loadedModes.map((mode, i) => { - const isFirst = i === 0; - const modalitiesToCheck = modalities.replaceAll('/', '\\'); const isValidMode = mode.isValidMode({ diff --git a/platform/ui/package.json b/platform/ui/package.json index 5af1b54b6..9b5f065cf 100644 --- a/platform/ui/package.json +++ b/platform/ui/package.json @@ -46,7 +46,7 @@ "react-error-boundary": "^3.1.3", "react-modal": "3.11.2", "react-outside-click-handler": "^1.3.0", - "react-select": "3.0.8", + "react-select": "5.7.4", "react-window": "^1.8.9", "react-with-direction": "^1.3.1", "swiper": "^8.4.2", diff --git a/platform/ui/src/components/Header/Header.tsx b/platform/ui/src/components/Header/Header.tsx index d0c286d79..a780b231c 100644 --- a/platform/ui/src/components/Header/Header.tsx +++ b/platform/ui/src/components/Header/Header.tsx @@ -62,6 +62,7 @@ function Header({ id="options" showDropdownIcon={false} list={menuOptions} + alignment="right" >