From 265b5157af6328c9ce7a02d39a248fa1997a47ab Mon Sep 17 00:00:00 2001 From: Borislav Pantaleev Date: Tue, 3 Sep 2024 00:51:42 +0300 Subject: [PATCH] Fix user's Edit action defualt Tab not being shown --- src/resources/users.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/resources/users.tsx b/src/resources/users.tsx index eb80dc6..f1085d3 100644 --- a/src/resources/users.tsx +++ b/src/resources/users.tsx @@ -53,6 +53,8 @@ import { useListContext, useNotify, ToolbarClasses, + Identifier, + RaRecord, } from "react-admin"; import { Link } from "react-router-dom"; @@ -140,6 +142,10 @@ const UserBulkActionButtons = () => { }; +const usersRowClick = (id: Identifier, resource: string, record: RaRecord): string => { + return `/users/${id}`; +}; + export const UserList = (props: ListProps) => ( ( actions={} pagination={} > - }> + }>