Skip to content

Commit

Permalink
change icon
Browse files Browse the repository at this point in the history
  • Loading branch information
balanza committed Aug 7, 2024
1 parent 9ccc8da commit 7a0f869
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
7 changes: 4 additions & 3 deletions assets/js/common/DateFilter/DateFilter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -67,7 +67,8 @@ const getSelectedOption = (options, value) => {
function Tick() {
return (
<span className="absolute inset-y-0 right-0 flex items-center pr-4">
<svg
<EOS_CHECK size="m" />
{/* <svg
className="h-5 w-5"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
Expand All @@ -79,7 +80,7 @@ function Tick() {
d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
clipRule="evenodd"
/>
</svg>
</svg> */}
</span>
);
}
Expand Down
16 changes: 2 additions & 14 deletions assets/js/common/Filter/Filter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(', ');
Expand Down Expand Up @@ -123,19 +123,7 @@ function Filter({ options, title, value = [], onChange }) {
</div>
{hasOne(value, [option]) && (
<span className="absolute inset-y-0 right-0 flex items-center pr-4">
<svg
className="h-5 w-5"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
aria-hidden="true"
>
<path
fillRule="evenodd"
d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
clipRule="evenodd"
/>
</svg>
<EOS_CHECK size="m" />
</span>
)}
</li>
Expand Down

0 comments on commit 7a0f869

Please sign in to comment.