Skip to content

Commit

Permalink
Added code column in table for all
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulg1254 committed Aug 2, 2024
1 parent 7e6ee94 commit 3599f16
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
5 changes: 4 additions & 1 deletion public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@
"SEARCHBAR_PLACEHOLDER_BLOCK": "Search Blocks",
"BLOCKS": "Blocks",
"UPDATED_AT": "Updated At",
"CREATED_AT": "Created At"
"CREATED_AT": "Created At",
"STATE_CODE": "State Code",
"DISTRICT_CODE": "District Code",
"BLOCK_CODE": "Block Code"
},
"CENTERS": {
"CENTERS": "Centers",
Expand Down
6 changes: 6 additions & 0 deletions src/pages/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ const Block: React.FC = () => {
title: t("MASTER.BLOCK_NAMES"),
dataType: DataType.String,
},
{
key: "value",
title: t("MASTER.BLOCK_CODE"),
dataType: DataType.String,
},
{
key: "createdAt",
title: t("MASTER.CREATED_AT"),
Expand Down Expand Up @@ -290,6 +295,7 @@ const Block: React.FC = () => {
block: transformLabel(block.label),
createdAt: block.createdAt,
updatedAt: block.updatedAt,
value: block.value,
}))}
limit={pageLimit}
offset={pageOffset}
Expand Down
7 changes: 7 additions & 0 deletions src/pages/district.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ const District: React.FC = () => {
title: t("MASTER.DISTRICT_NAMES"),
dataType: DataType.String,
},
{
key: "value",
title: t("MASTER.DISTRICT_CODE"),
dataType: DataType.String,
sortDirection: SortDirection.Ascend,
},

{
key: "createdAt",
title: t("MASTER.CREATED_AT"),
Expand Down
10 changes: 7 additions & 3 deletions src/pages/state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ const State: React.FC = () => {
dataType: DataType.String,
sortDirection: SortDirection.Ascend,
},
{
key: "value",
title: t("MASTER.STATE_CODE"),
dataType: DataType.String,
sortDirection: SortDirection.Ascend,
},

{
key: "createdAt",
title: t("MASTER.CREATED_AT"),
Expand All @@ -72,13 +79,10 @@ const State: React.FC = () => {
{
key: "updatedAt",
title: t("MASTER.UPDATED_AT"),
dataType: DataType.String,
sortDirection: SortDirection.Ascend,
},
{
key: "actions",
title: t("MASTER.ACTIONS"),
dataType: DataType.String,
},
],
[t]
Expand Down

0 comments on commit 3599f16

Please sign in to comment.