Skip to content

Commit

Permalink
feat: Make queue search insensitive, closes #449
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Sep 14, 2022
1 parent 360285b commit 403f07b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/ui/src/components/Menu/Menu.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import React, { useState } from 'react';

import { AppQueue } from '@bull-board/api/typings/app';
import cn from 'clsx';
import React, { useState } from 'react';
import { NavLink } from 'react-router-dom';
import { STATUS_LIST } from '../../constants/status-list';
import { SearchIcon } from '../Icons/Search';
import { Store } from '../../hooks/useStore';
import { SearchIcon } from '../Icons/Search';
import s from './Menu.module.css';
import cn from 'clsx';

export const Menu = ({
queues,
Expand Down Expand Up @@ -37,7 +36,7 @@ export const Menu = ({
{!!queues && (
<ul className={s.menu}>
{queues
.filter(({ name }) => name.includes(searchTerm))
.filter(({ name }) => name?.toLowerCase().includes(searchTerm?.toUpperCase()))
.map(({ name: queueName, isPaused }) => (
<li key={queueName}>
<NavLink
Expand Down

0 comments on commit 403f07b

Please sign in to comment.