Skip to content

Commit

Permalink
Feat/work type filter (#20)
Browse files Browse the repository at this point in the history
Added work-type filter functionality (primary and secondary work). #10
  • Loading branch information
oliviareichl authored Dec 19, 2024
1 parent 4f0c0c7 commit b3e9ef0
Show file tree
Hide file tree
Showing 9 changed files with 460 additions and 12,832 deletions.
4 changes: 2 additions & 2 deletions components/search-data-table/data-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const columns: Array<CustomColumnDef<SearchResults["results"][number]>> = [
h(Tooltip, {}, () => [
h(TooltipTrigger, { class: "cursor-default" }, () => [
IconComponent
? h(IconComponent, { class: "size-4 shrink-0" })
? h(IconComponent.icon, { class: "size-4 shrink-0" })
: h("span", {}, workType.map((type) => type.name).join(", ")),
]),
h(TooltipContent, {}, () => workType.map((type) => type.name).join(", ")),
Expand All @@ -58,7 +58,7 @@ const columns: Array<CustomColumnDef<SearchResults["results"][number]>> = [
h(Popover, {}, () => [
h(PopoverTrigger, { class: "cursor-default" }, () => [
IconComponent
? h(IconComponent, { class: "size-4 shrink-0" })
? h(IconComponent.icon, { class: "size-4 shrink-0" })
: h("span", {}, workType.map((type) => type.name).join(", ")),
]),
h(PopoverContent, {}, () => workType.map((type) => type.name).join(", ")),
Expand Down
Loading

0 comments on commit b3e9ef0

Please sign in to comment.