Skip to content

Commit

Permalink
Deploy page table rows stay selected when the side menu is open (#1492)
Browse files Browse the repository at this point in the history
  • Loading branch information
samejr authored Nov 28, 2024
1 parent 736f577 commit 39ef733
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import {
DeploymentListPresenter,
} from "~/presenters/v3/DeploymentListPresenter.server";
import { requireUserId } from "~/services/session.server";
import { cn } from "~/utils/cn";
import {
ProjectParamSchema,
docsPath,
Expand Down Expand Up @@ -139,8 +140,12 @@ export default function Page() {
deployment,
currentPage
);
const isSelected = deploymentParam === deployment.shortCode;
return (
<TableRow key={deployment.id} className="group">
<TableRow
key={deployment.id}
className={cn("group", isSelected ? "bg-grid-dimmed" : undefined)}
>
<TableCell to={path}>
<div className="flex items-center gap-2">
<Paragraph variant="extra-small">{deployment.shortCode}</Paragraph>
Expand Down

0 comments on commit 39ef733

Please sign in to comment.