replace underscore in filter type

This commit is contained in:
Josh Hawkins 2024-09-18 13:00:54 -05:00
parent 73b76ad7a2
commit c106787251

View File

@ -589,7 +589,8 @@ export default function InputWithTags({
key={`${filterType}-${index}`} key={`${filterType}-${index}`}
className="inline-flex items-center whitespace-nowrap rounded-full bg-green-100 px-2 py-0.5 text-sm capitalize text-green-800" className="inline-flex items-center whitespace-nowrap rounded-full bg-green-100 px-2 py-0.5 text-sm capitalize text-green-800"
> >
{filterType}: {value.replaceAll("_", " ")} {filterType.replaceAll("_", " ")}:{" "}
{value.replaceAll("_", " ")}
<button <button
onClick={() => onClick={() =>
removeFilter(filterType as FilterType, value) removeFilter(filterType as FilterType, value)