fix: remove filters function (#846)

This commit is contained in:
Aaryan Khandelwal 2023-04-17 15:03:56 +05:30 committed by GitHub
parent 819508d5fc
commit f5351e4419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -309,7 +309,19 @@ export const FilterList: React.FC<any> = ({ filters, setFilters }) => {
)} )}
</div> </div>
) : ( ) : (
<span className="capitalize">{filters[key as keyof typeof filters]}</span> <div className="flex items-center gap-x-1 capitalize">
{filters[key as keyof typeof filters]}
<button
type="button"
onClick={() =>
setFilters({
[key]: null,
})
}
>
<XMarkIcon className="h-3 w-3" />
</button>
</div>
)} )}
</div> </div>
); );
@ -319,6 +331,7 @@ export const FilterList: React.FC<any> = ({ filters, setFilters }) => {
type="button" type="button"
onClick={() => onClick={() =>
setFilters({ setFilters({
type: null,
state: null, state: null,
priority: null, priority: null,
assignees: null, assignees: null,