Skip to content

Commit

Permalink
remove the ability to select row in lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien MAIRE authored and Julien MAIRE committed Feb 4, 2025
1 parent 6a37ed5 commit 57165bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/games/GameList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const postFilters = [

export const GameList = () => (
<List filters={postFilters}>
<Datagrid>
<Datagrid isRowSelectable={() => false}>
<TextField source="id" />
<TextField source="first_player" label="First player" />
<TextField source="second_player" label="Second player" />
Expand Down
2 changes: 1 addition & 1 deletion src/users/UserList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const postFilters = [

export const UserList = () => (
<List filters={postFilters}>
<Datagrid>
<Datagrid isRowSelectable={() => false}>
<TextField source="id" />
<TextField source="username" label="Username" />
<TextField source="first_name" label="First name" />
Expand Down

0 comments on commit 57165bc

Please sign in to comment.