Skip to content

Commit

Permalink
Add rowKey prop to multiple tables for improved row identification
Browse files Browse the repository at this point in the history
  • Loading branch information
jthoward64 committed Jan 8, 2025
1 parent 0ef71da commit b5f8c9c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/portal/src/elements/tables/ImagesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export const ImagesTable = () => {

<Table
{...tableProps}
rowKey="id"
columns={[
{
title: "Preview",
Expand Down
1 change: 1 addition & 0 deletions packages/portal/src/elements/tables/PeopleTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const PeopleTable = () => {
<RefineSearchForm searchFormProps={searchFormProps} />
<Table
{...tableProps}
rowKey="id"
columns={[
{
title: "Name",
Expand Down
1 change: 1 addition & 0 deletions packages/portal/src/elements/tables/TeamsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const TeamsTable = ({
<RefineSearchForm searchFormProps={searchFormProps} />
<Table
{...tableProps}
rowKey="id"
columns={[
{
title: "Name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export const DDNTable = () => {
<RefineSearchForm searchFormProps={searchFormProps} />
<Table
{...tableProps}
rowKey="id"
columns={[
{
title: "Donor",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export function FundraisingEntriesTable<T extends Record<string, unknown>>({
<Table
{...tableProps}
style={{ width: "100%" }}
rowKey="id"
columns={[
{
title: "Donated By",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const NotificationDeliveriesTable = ({
return (
<Table
{...tableProps}
rowKey="id"
columns={[
{
title: "Sent At",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const NotificationsTable = () => {
<RefineSearchForm searchFormProps={searchFormProps} />
<Table
{...tableProps}
rowKey="id"
columns={[
{
title: "Title",
Expand Down
1 change: 1 addition & 0 deletions packages/portal/src/routes/admin/logs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ function LogsPage() {
<Space direction="vertical" style={{ width: "100%" }}>
<Table
{...tableProps}
rowKey="id"
columns={[
{
title: "Summary",
Expand Down

0 comments on commit b5f8c9c

Please sign in to comment.