From fabc21d909f35dae9a510106fe06889f4bd50c83 Mon Sep 17 00:00:00 2001 From: Mark Shenouda Date: Wed, 20 May 2026 22:01:55 +0300 Subject: [PATCH] feat: make full table rows clickable to open drawer in CCIP directory --- src/components/AddressReact.tsx | 12 +++- src/components/CCIP/Tables/ChainTable.tsx | 70 +++++++++++-------- src/components/CCIP/Tables/Table.css | 4 ++ .../CCIP/Tables/TokenChainsTable.tsx | 42 ++++++----- 4 files changed, 79 insertions(+), 49 deletions(-) diff --git a/src/components/AddressReact.tsx b/src/components/AddressReact.tsx index 46d3e69bace..c54e3d2e300 100644 --- a/src/components/AddressReact.tsx +++ b/src/components/AddressReact.tsx @@ -16,14 +16,22 @@ const AddressComponent = ({ contractUrl, address, endLength, urlClass, urlId }: if (!address) return null - const handleClick = (e) => { + const handleClick = (e: React.MouseEvent) => { e.preventDefault() + e.stopPropagation() if (address) navigator.clipboard.writeText(address) } return ( - + e.stopPropagation()} + > {endLength && address ? address.slice(0, endLength + 2) + "..." + address.slice(-endLength) : address} + + { + drawerWidthStore.set(DrawerWidth.Wide) + drawerContentStore.set(() => ( + + )) + }} + role="button" + tabIndex={0} + aria-label={`View ${network.name} token details`} + onKeyDown={(e) => { + if (e.key === "Enter" || e.key === " ") { + e.preventDefault() + e.currentTarget.click() + } + }} + > - + {network.tokenName} {network.tokenSymbol}