diff --git a/.eslintrc.js b/.eslintrc.js index e092237b8..a5a6ff767 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -26,6 +26,7 @@ module.exports = { plugins: ['no-for-of-loops', 'no-function-declare-after-return', 'react', 'react-hooks', 'prettier'], rules: { // ... + // 'react/jsx-curly-brace-presence': ['error', { props: 'never', children: 'never' }], 'react-hooks/rules-of-hooks': 'error', // Checks rules of Hooks 'react-hooks/exhaustive-deps': 'warn', // Checks effect dependencies 'react/react-in-jsx-scope': 'off', diff --git a/package-lock.json b/package-lock.json index ff48229b1..80f2fe463 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11052,9 +11052,9 @@ } }, "node_modules/qs": { - "version": "6.14.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.1.tgz", - "integrity": "sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==", + "version": "6.14.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz", + "integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==", "dev": true, "license": "BSD-3-Clause", "dependencies": { diff --git a/react/assets/forus-platform/scss/_common/includes/common.scss b/react/assets/forus-platform/scss/_common/includes/common.scss index 5340feb92..935667024 100644 --- a/react/assets/forus-platform/scss/_common/includes/common.scss +++ b/react/assets/forus-platform/scss/_common/includes/common.scss @@ -150,10 +150,6 @@ img { transition: color 0.3s; } -.transition-background { - transition: background-color 0.3s; -} - .text-black { color: #000000; } @@ -1579,4 +1575,4 @@ img { } } } -} \ No newline at end of file +} diff --git a/react/assets/forus-webshop/scss/includes/blocks/block-fund-request.scss b/react/assets/forus-webshop/scss/includes/blocks/block-fund-request.scss index ed1080c22..546af94f9 100644 --- a/react/assets/forus-webshop/scss/includes/blocks/block-fund-request.scss +++ b/react/assets/forus-webshop/scss/includes/blocks/block-fund-request.scss @@ -96,14 +96,8 @@ } } - .label { - &:not(:last-child):not(:last-of-type) { - margin: 0; - } - - .label-text { - display: inline-block; - } + .label:not(:last-child):not(:last-of-type) { + margin: 0; } &:last-child { diff --git a/react/assets/forus-webshop/scss/includes/components/_label.scss b/react/assets/forus-webshop/scss/includes/components/_label.scss index 4205ca465..47f98536f 100644 --- a/react/assets/forus-webshop/scss/includes/components/_label.scss +++ b/react/assets/forus-webshop/scss/includes/components/_label.scss @@ -36,14 +36,6 @@ } } - .label-close { - color: #fff; - float: left; - font-size: 14px; - margin: 0 2.5px 0 -2.5px; - cursor: pointer; - } - &.label-success { color: var(--label-success-color); background: var(--label-success-background); @@ -109,4 +101,4 @@ border-radius: calc(var(--border-radius) / 2); } } -} \ No newline at end of file +} diff --git a/react/src/dashboard/components/elements/forms/controls/MultiSelectControl.tsx b/react/src/dashboard/components/elements/forms/controls/MultiSelectControl.tsx index 087ec0b6a..3b2236e08 100644 --- a/react/src/dashboard/components/elements/forms/controls/MultiSelectControl.tsx +++ b/react/src/dashboard/components/elements/forms/controls/MultiSelectControl.tsx @@ -1,7 +1,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { uniq, uniqueId } from 'lodash'; import SelectControl from '../../select-control/SelectControl'; -import Label from '../../image_cropper/Label'; +import Label from '../../label/Label'; export default function MultiSelectControl({ id = uniqueId('multiselect_'), @@ -70,9 +70,13 @@ export default function MultiSelectControl({ {value?.map((id) => ( -