fix(ui): case insensitive match for search

This commit is contained in:
nick-delirium 2023-01-26 17:20:07 +01:00
parent bf47073407
commit ebbc452326
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ function RecordingsList() {
show={length === 0}
title={
<div className="flex flex-col items-center justify-center">
<AnimatedSVG name={ICONS.NO_RECORDINGS} />
<AnimatedSVG name={ICONS.NO_RECORDINGS} size={180} />
<div className="text-center text-gray-600 my-4">
{recordsSearch !== ''
? 'No matching results'

View file

@ -59,7 +59,7 @@ function SavedSearchModal(props: Props) {
setTimeout(() => setshowModal(true), 0);
};
const shownItems = props.list.filter((item) => item.name.includes(filterQuery));
const shownItems = props.list.filter((item) => item.name.toLocaleLowerCase().includes(filterQuery.toLocaleLowerCase()));
return (
<div className="bg-white box-shadow h-screen">