Skip to content

Commit

Permalink
Merge branch '622--deployments-change-from-vm-to-blob-storage-fix-fil…
Browse files Browse the repository at this point in the history
…ters' of https://github.com/SSWConsulting/SSW.People into 622--deployments-change-from-vm-to-blob-storage-fix-filters
  • Loading branch information
jernejk committed Jul 10, 2024
2 parents bae7433 + 8acca68 commit 638233e
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/components/filter/filter.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
/* eslint-disable jsx-a11y/click-events-have-key-events */
import React, { useEffect, useState, useRef } from 'react';
import PropTypes from 'prop-types';
import Checkbox from '../checkbox';
import {
faCheck,
faAngleUp,
faAngleDown,
faAngleUp,
faCheck,
faTimes,
} from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import '../../style.css';
import withURLLocation from '../withLocation/withURLLocation';
import PropTypes from 'prop-types';
import React, { useEffect, useRef, useState } from 'react';
import {
clearUrlFilter,
initFilter,
updateUrlFilter,
clearUrlFilter,
} from '../../helpers/queryFilterHelper';
import '../../style.css';
import Checkbox from '../checkbox';
import withURLLocation from '../withLocation/withURLLocation';

const Filter = ({
filterTitle,
Expand All @@ -39,6 +39,9 @@ const Filter = ({
};

const onItemClicked = (item) => {
0;

console.log('item clicked', item);
const previouslySelected = isItemSelected(item);
if (previouslySelected) {
onItemChange(selectedItems.filter((s) => s !== item));
Expand All @@ -51,6 +54,7 @@ const Filter = ({
};

const clearFilter = () => {
console.log('clearing filter');
onItemChange([]);
setListOpen(false);
clearUrlFilter(filterUrlTitle, search);
Expand Down

0 comments on commit 638233e

Please sign in to comment.