Skip to content

Commit

Permalink
[#187809039] Fixes table/case card toggle icon to show the correct ic…
Browse files Browse the repository at this point in the history
…on (#1331)

* Fixes table/case card toggle icon to show the correct icon

* PR Fix
  • Loading branch information
eireland authored Jul 10, 2024
1 parent d086106 commit 4c42c9d
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,25 @@ interface TableCardInfo {
iconClass: string
}

// Icon and iconClass are swapped to show the correct icon for toggling between case card and table
const tileInfoMap: Record<string, TableCardInfo> = {
[kCaseCardTileType]: {
thisType: kCaseCardTileType,
otherType: kCaseTableTileType,
thisSuffix: "Card",
otherSuffix: "Table",
toggleSuffix: "CardToTable",
Icon: CardIcon,
iconClass: "card-icon"
Icon: TableIcon,
iconClass: "table-icon"
},
[kCaseTableTileType]: {
thisType: kCaseTableTileType,
otherType: kCaseCardTileType,
thisSuffix: "Table",
otherSuffix: "Card",
toggleSuffix: "TableToCard",
Icon: TableIcon,
iconClass: "table-icon"
Icon: CardIcon,
iconClass: "card-icon"
}
}

Expand Down

0 comments on commit 4c42c9d

Please sign in to comment.