From 7a0f86904e3369edc9ccbdf54927bd06fadca6af Mon Sep 17 00:00:00 2001 From: balanza Date: Wed, 7 Aug 2024 11:35:28 +0200 Subject: [PATCH] change icon --- assets/js/common/DateFilter/DateFilter.jsx | 7 ++++--- assets/js/common/Filter/Filter.jsx | 16 ++-------------- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/assets/js/common/DateFilter/DateFilter.jsx b/assets/js/common/DateFilter/DateFilter.jsx index 0e9c5b3b6a..493c4c5a88 100644 --- a/assets/js/common/DateFilter/DateFilter.jsx +++ b/assets/js/common/DateFilter/DateFilter.jsx @@ -3,7 +3,7 @@ import classNames from 'classnames'; import { Transition } from '@headlessui/react'; import useOnClickOutside from '@hooks/useOnClickOutside'; -import { EOS_CLOSE } from 'eos-icons-react'; +import { EOS_CLOSE, EOS_CHECK } from 'eos-icons-react'; import Input from '@common/Input'; @@ -67,7 +67,8 @@ const getSelectedOption = (options, value) => { function Tick() { return ( - + {/* - + */} ); } diff --git a/assets/js/common/Filter/Filter.jsx b/assets/js/common/Filter/Filter.jsx index c8c09ffd71..c00f4420e9 100644 --- a/assets/js/common/Filter/Filter.jsx +++ b/assets/js/common/Filter/Filter.jsx @@ -3,10 +3,10 @@ import React, { Fragment, useState, useRef } from 'react'; import classNames from 'classnames'; import { Transition } from '@headlessui/react'; +import { EOS_CLOSE, EOS_CHECK } from 'eos-icons-react'; import { toggle, hasOne } from '@lib/lists'; import useOnClickOutside from '@hooks/useOnClickOutside'; -import { EOS_CLOSE } from 'eos-icons-react'; const getLabel = (value, placeholder) => value.length === 0 ? placeholder : value.join(', '); @@ -123,19 +123,7 @@ function Filter({ options, title, value = [], onChange }) { {hasOne(value, [option]) && ( - + )}