Skip to content

Commit

Permalink
admin/payments: Reorder payment fields
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Mar 13, 2024
1 parent 5bc03ea commit 1aa9011
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/components/admin/payments/grid/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,15 @@ export default observer(function Grid() {
)
},
},
{
field: 'type',
headerName: t('donations:type'),
},
{
field: 'createdAt',
headerName: t('donations:date'),
...commonProps,
width: 250,
width: 200,
renderCell: (params: GridRenderCellParams) => {
return getExactDateTime(params?.row.createdAt)
},
Expand All @@ -177,6 +181,17 @@ export default observer(function Grid() {
field: 'status',
headerName: t('donations:status'),
},
{
field: 'id',
headerName: 'ID',
width: 320,
},
{
field: 'provider',
headerName: t('donations:provider'),
...commonProps,
width: 100,
},
{
field: 'amount',
headerName: t('donations:amount'),
Expand Down Expand Up @@ -210,21 +225,6 @@ export default observer(function Grid() {
)
},
},
{
field: 'id',
headerName: 'ID',
width: 320,
},
{
field: 'type',
headerName: t('donations:type'),
},
{
field: 'provider',
headerName: t('donations:provider'),
...commonProps,
width: 200,
},
{
field: 'donations',
headerName: t('Дарения\n брой'),
Expand Down

0 comments on commit 1aa9011

Please sign in to comment.