Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datagrid: Hide id fields after datagrid v6 update #1463

Merged
merged 1 commit into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/components/admin/InfoRequestGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export default function InfoRequestGrid() {
<DataGrid
rows={data || []}
columns={columns}
columnVisibilityModel={{
id: false,
}}
paginationModel={paginationModel}
onPaginationModelChange={setPaginationModel}
autoHeight
Expand Down
3 changes: 3 additions & 0 deletions src/components/admin/SupportersGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export default function SupportersGrid() {
<DataGrid
rows={data || []}
columns={columns}
columnVisibilityModel={{
id: false,
}}
paginationModel={paginationModel}
onPaginationModelChange={setPaginationModel}
autoHeight
Expand Down
3 changes: 3 additions & 0 deletions src/components/admin/cities/grid/CityGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export default observer(function CitiesGrid() {
}}
rows={data || []}
columns={columns}
columnVisibilityModel={{
id: false,
}}
paginationModel={paginationModel}
onPaginationModelChange={setPaginationModel}
editMode="row"
Expand Down
3 changes: 3 additions & 0 deletions src/components/admin/countries/grid/CountryGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ export default observer(function Grid() {
}}
rows={data || []}
columns={columns}
columnVisibilityModel={{
id: false,
}}
pageSizeOptions={[5, 10]}
paginationModel={paginationModel}
onPaginationModelChange={setPaginationModel}
Expand Down
3 changes: 3 additions & 0 deletions src/components/admin/donations/grid/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ export default observer(function Grid() {
}}
rows={donations || []}
columns={columns}
columnVisibilityModel={{
id: false,
}}
pageSizeOptions={[5, 10, 20]}
paginationModel={paginationModel}
onPaginationModelChange={setPaginationModel}
Expand Down
3 changes: 3 additions & 0 deletions src/components/admin/expenses/grid/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ export default observer(function Grid() {
className={classes.grid}
rows={data || []}
columns={columns}
columnVisibilityModel={{
id: false,
}}
paginationModel={paginationModel}
onPaginationModelChange={setPaginationModel}
pageSizeOptions={[5, 10]}
Expand Down
3 changes: 3 additions & 0 deletions src/components/admin/irregularity/admin/grid/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ export default observer(function Grid() {
}}
rows={data || []}
columns={columns}
columnVisibilityModel={{
id: false,
}}
paginationModel={paginationModel}
onPaginationModelChange={setPaginationModel}
autoHeight
Expand Down
3 changes: 3 additions & 0 deletions src/components/admin/organizers/grid/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ export default observer(function Grid() {
}}
rows={data || []}
columns={columns}
columnVisibilityModel={{
id: false,
}}
pageSizeOptions={[5, 10]}
paginationModel={paginationModel}
onPaginationModelChange={setPaginationModel}
Expand Down
3 changes: 3 additions & 0 deletions src/components/admin/transfers/grid/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ export default observer(function Grid() {
}}
rows={data || []}
columns={columns}
columnVisibilityModel={{
id: false,
}}
pageSizeOptions={[5, 10]}
paginationModel={paginationModel}
onPaginationModelChange={setPaginationModel}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ export default observer(function CampaignPublicExpensesGrid({ slug }: Props) {
className={classes.grid}
rows={expensesList || []}
columns={columns}
columnVisibilityModel={{
id: false,
}}
pageSizeOptions={[20, 40, 60]}
paginationModel={paginationModel}
onPaginationModelChange={setPaginationModel}
Expand Down
3 changes: 3 additions & 0 deletions src/components/common/person/grid/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ export default observer(function Grid() {
}}
rows={data || []}
columns={columns}
columnVisibilityModel={{
id: false,
}}
pageSizeOptions={[5, 10]}
paginationModel={paginationModel}
onPaginationModelChange={setPaginationModel}
Expand Down