mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-27 20:22:33 +08:00
[resumes][feat] update filter count colour
This commit is contained in:
@ -427,12 +427,9 @@ export default function ResumeHomePage() {
|
|||||||
{filter.options.map((option) => (
|
{filter.options.map((option) => (
|
||||||
<div
|
<div
|
||||||
key={option.value}
|
key={option.value}
|
||||||
className="[&>div>div:nth-child(1)>input]:text-primary-600 [&>div>div:nth-child(1)>input]:ring-primary-500 [&>div>div:nth-child(2)>label]:font-normal">
|
className="[&>div>div:nth-child(1)>input]:text-primary-600 [&>div>div:nth-child(1)>input]:ring-primary-500 flex items-center px-1 text-sm [&>div>div:nth-child(2)>label]:font-normal">
|
||||||
<CheckboxInput
|
<CheckboxInput
|
||||||
label={`${option.label} (${getFilterCount(
|
label={option.label}
|
||||||
filter.label,
|
|
||||||
option.label,
|
|
||||||
)})`}
|
|
||||||
value={userFilters[filter.id].includes(
|
value={userFilters[filter.id].includes(
|
||||||
option.value,
|
option.value,
|
||||||
)}
|
)}
|
||||||
@ -444,6 +441,14 @@ export default function ResumeHomePage() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
<span className="ml-1 text-slate-500">
|
||||||
|
(
|
||||||
|
{getFilterCount(
|
||||||
|
filter.label,
|
||||||
|
option.label,
|
||||||
|
)}
|
||||||
|
)
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
@ -527,12 +532,9 @@ export default function ResumeHomePage() {
|
|||||||
{filter.options.map((option) => (
|
{filter.options.map((option) => (
|
||||||
<div
|
<div
|
||||||
key={option.value}
|
key={option.value}
|
||||||
className="[&>div>div:nth-child(1)>input]:text-primary-600 [&>div>div:nth-child(1)>input]:ring-primary-500 px-1 [&>div>div:nth-child(2)>label]:font-normal">
|
className="[&>div>div:nth-child(1)>input]:text-primary-600 [&>div>div:nth-child(1)>input]:ring-primary-500 flex items-center px-1 text-sm [&>div>div:nth-child(2)>label]:font-normal">
|
||||||
<CheckboxInput
|
<CheckboxInput
|
||||||
label={`${option.label} (${getFilterCount(
|
label={option.label}
|
||||||
filter.label,
|
|
||||||
option.label,
|
|
||||||
)})`}
|
|
||||||
value={userFilters[filter.id].includes(
|
value={userFilters[filter.id].includes(
|
||||||
option.value,
|
option.value,
|
||||||
)}
|
)}
|
||||||
@ -544,6 +546,9 @@ export default function ResumeHomePage() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
<span className="ml-1 text-slate-500">
|
||||||
|
({getFilterCount(filter.label, option.label)})
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</CheckboxList>
|
</CheckboxList>
|
||||||
|
Reference in New Issue
Block a user