Skip to content

Commit

Permalink
Merge pull request #1555 from hackforla/1552-remove-filtering-on-cont…
Browse files Browse the repository at this point in the history
…ext-menu

Added inline if-else to remove click function and hover pointer class
  • Loading branch information
ZekeAranyLucas authored Jan 9, 2024
2 parents 8a8d9af + b8dd3f9 commit 2b6f74d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions client/src/components/Projects/ProjectsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,13 +490,21 @@ const ProjectsPage = ({ account, contentContainerRef }) => {
<table className={classes.table}>
<thead className={classes.thead}>
<tr className={classes.tr}>
{headerData.map((header, i) => {
{headerData.map(header => {
const label = header.label;
return (
<td
key={i}
className={`${classes.td} ${classes.theadLabel}`}
onClick={() => handleSort(header.id)}
key={header.id}
className={
header.id === "contextMenu"
? `${classes.td}`
: `${classes.td} ${classes.theadLabel}`
}
onClick={
header.id == "contextMenu"
? null
: () => handleSort(header.id)
}
>
{orderBy === header.id ? (
<span className={classes.labelSpan}>
Expand Down

0 comments on commit 2b6f74d

Please sign in to comment.