fix(ui): handle Table Row without href prop correctly
Fixed the Table Row component to properly handle cases where no href is provided. This prevents unnecessary RouterProvider wrapping and fixes the cursor incorrectly appearing as a pointer when the row is not actually a link. Signed-off-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/ui': patch
|
||||
---
|
||||
|
||||
Fixed Table Row component to correctly handle cases where no href is provided, preventing unnecessary router provider wrapping and fixing the cursor incorrectly showing as a pointer despite the element not being a link.
|
||||
@@ -51,7 +51,7 @@ export function Row<T extends object>(props: RowProps<T>) {
|
||||
</>
|
||||
);
|
||||
|
||||
if (isExternal) {
|
||||
if (!href || isExternal) {
|
||||
return (
|
||||
<ReactAriaRow
|
||||
id={id}
|
||||
|
||||
Reference in New Issue
Block a user