Skip to content

Commit

Permalink
feat: auto height on tables
Browse files Browse the repository at this point in the history
  • Loading branch information
ckthiessen committed Jun 16, 2024
1 parent 1a92d42 commit 7d5fc5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/donors/DonorsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default function DonorsTable({ rows, isLoading }: DonorsTableProps) {

return (
<DataGrid
autoHeight
rows={rows ?? []}
columns={columns}
initialState={{
Expand Down
2 changes: 1 addition & 1 deletion src/components/orders/OrdersTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Order } from "../../types/Order";
import { COST_PER_ORDER } from "../../constants";
import { getChipColor } from "../../utils/getChipColor";
import { useSnackbar } from "../../hooks/useSnackbar";
import useDeleteOrder from "../../hooks/useDeleteOrder";
import { EditOrderButton } from "../common/EditOrderButton";
import { useTheme } from "@mui/material";
import { DeleteOrderButton } from "../common/DeleteOrderButton";
Expand Down Expand Up @@ -104,6 +103,7 @@ export default function OrdersTable({ rows, isLoading }: OrdersTableProps) {
return (
<>
<DataGrid
autoHeight
rows={rows ?? []}
columns={columns}
initialState={{
Expand Down
1 change: 1 addition & 0 deletions src/components/pickups/PickupTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export default function PickupTable({ rows, isLoading }: PickupTableProps) {
return (
<>
<DataGrid
autoHeight
rows={rows ?? []}
columns={columns}
initialState={{
Expand Down

0 comments on commit 7d5fc5c

Please sign in to comment.