{t("userEvents")}}
+ title={{t("events")}}
{...userEventsTab}
>
diff --git a/js/libs/ui-shared/src/controls/table/KeycloakDataTable.tsx b/js/libs/ui-shared/src/controls/table/KeycloakDataTable.tsx
index b28083ecee2f..ab00d57a4988 100644
--- a/js/libs/ui-shared/src/controls/table/KeycloakDataTable.tsx
+++ b/js/libs/ui-shared/src/controls/table/KeycloakDataTable.tsx
@@ -77,13 +77,18 @@ type CellRendererProps = {
row: IRow;
};
-const CellRenderer = ({ row }: CellRendererProps) => {
- const isRow = (c: ReactNode | IRowCell): c is IRowCell =>
- !!c && (c as IRowCell).title !== undefined;
- return row.cells!.map((c, i) => (
+const isRow = (c: ReactNode | IRowCell): c is IRowCell =>
+ !!c && (c as IRowCell).title !== undefined;
+
+const CellRenderer = ({ row }: CellRendererProps) =>
+ row.cells!.map((c, i) => (
{(isRow(c) ? c.title : c) as ReactNode} |
));
-};
+
+const ExpandableRowRenderer = ({ row }: CellRendererProps) =>
+ row.cells!.map((c, i) => (
+ {(isRow(c) ? c.title : c) as ReactNode}
+ ));
function DataTable({
columns,
@@ -162,10 +167,10 @@ function DataTable({
>
- {onCollapse && | }
+ {onCollapse && | }
{canSelectAll && (
({
)}
{columns.map((column) => (
|
@@ -243,7 +249,7 @@ function DataTable({
|
-
+
|
|