From ae26b17cab677defe783e8ffba08782530490cdf Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Mon, 24 Apr 2023 11:20:02 +0530 Subject: [PATCH] style: filters list theming (#941) --- apps/app/components/core/filter-list.tsx | 41 +++++++++++------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/apps/app/components/core/filter-list.tsx b/apps/app/components/core/filter-list.tsx index 2ede6a367..70f980aae 100644 --- a/apps/app/components/core/filter-list.tsx +++ b/apps/app/components/core/filter-list.tsx @@ -59,7 +59,7 @@ export const FilterList: React.FC = ({ filters, setFilters }) => { key={key} className="flex items-center gap-x-2 rounded-full border border-brand-base bg-brand-surface-2 px-2 py-1" > - + {replaceUnderscoreIfSnakeCase(key)}: {filters[key as keyof IIssueFilterOptions] === null || @@ -75,7 +75,7 @@ export const FilterList: React.FC = ({ filters, setFilters }) => { return (

= ({ filters, setFilters }) => { {filters.priority?.map((priority: any) => (

{getPriorityIcon(priority)} @@ -170,7 +170,7 @@ export const FilterList: React.FC = ({ filters, setFilters }) => { return (

{member?.first_name} @@ -203,7 +203,7 @@ export const FilterList: React.FC = ({ filters, setFilters }) => {
- ) : (key as keyof IIssueFilterOptions) === "created_by" ? ( + ) : key === "created_by" ? (
{filters.created_by?.map((memberId: string) => { const member = members?.find((m) => m.member.id === memberId)?.member; @@ -211,7 +211,7 @@ export const FilterList: React.FC = ({ filters, setFilters }) => { return (
{member?.first_name} @@ -253,25 +253,20 @@ export const FilterList: React.FC = ({ filters, setFilters }) => { const color = label.color !== "" ? label.color : "#0f172a"; return (
- - {label.name} - + {label.name} @@ -341,8 +336,8 @@ export const FilterList: React.FC = ({ filters, setFilters }) => { } className="flex items-center gap-x-1 rounded-full border border-brand-base bg-brand-surface-2 px-3 py-1.5 text-xs" > - Clear all filters - + Clear all filters + )}