Skip to content

Commit 86e5614

Browse files
authored
Adds selected state for waitpoint table rows (#1892)
1 parent fc0a331 commit 86e5614

File tree

1 file changed

+5
-1
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.waitpoints.tokens

1 file changed

+5
-1
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.waitpoints.tokens/route.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,13 @@ export default function Page() {
163163
token,
164164
filters
165165
);
166+
const rowIsSelected = waitpointParam === token.id;
166167

167168
return (
168-
<TableRow key={token.id}>
169+
<TableRow
170+
key={token.id}
171+
className={rowIsSelected ? "bg-grid-dimmed" : undefined}
172+
>
169173
<TableCell to={path}>
170174
<span className="opacity-60">
171175
<DateTime date={token.createdAt} />

0 commit comments

Comments
 (0)