Skip to content

Commit

Permalink
Merge pull request #1179 from bcgov/feature/click-gateway-item
Browse files Browse the repository at this point in the history
clickable items in Gateways list
  • Loading branch information
Elson9 authored Sep 19, 2024
2 parents fc3499e + e27499a commit 9ba051e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/nextapp/pages/manager/gateways/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ const MyGatewaysPage: React.FC = () => {
py={2}
mb={4}
data-testid={`ns-list-item-${namespace.name}`}
onClick={handleNamespaceChange(namespace)}
cursor="pointer"
transition="background-color 0.2s"
_hover={{ backgroundColor: "#f0f0f0" }}
>
<Box>
<Flex alignItems="center">
Expand All @@ -298,16 +302,15 @@ const MyGatewaysPage: React.FC = () => {
mr={4}
boxSize={4}
/>
<Link
<Text
fontSize="md"
as="b"
fontWeight="bold"
color="bc-blue"
mr={2}
onClick={handleNamespaceChange(namespace)}
data-testid={`ns-list-activate-link-${namespace.name}`}
>
{namespace.displayName}
</Link>
</Text>
</Flex>
<Text fontSize="md" pl="33px">
{namespace.name}
Expand Down

0 comments on commit 9ba051e

Please sign in to comment.