@djb25/digit-ui-module-ekyc 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djb25/digit-ui-module-ekyc",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Digit UI Module for Ekyc",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.modern.js",
@@ -49,15 +49,15 @@ const ConnectionDetailsView = ({ kNumber, kName, connectionDetails, isLoading })
49
49
  </StatusTable>
50
50
 
51
51
  <CardHeader style={{ marginTop: "24px" }}>{t("EKYC_CONNECTION_DETAILS")}</CardHeader>
52
- {connectionDetails?.connectionDetailsInfo ? (
52
+ {connectionDetails?.connectionDetails ? (
53
53
  <StatusTable>
54
- <Row label={t("EKYC_CONSUMER_NAME")} text={connectionDetails.connectionDetailsInfo.consumerName || t("CS_NA")} />
55
- <Row label={t("EKYC_ADDRESS")} text={connectionDetails.connectionDetailsInfo.address || t("CS_NA")} />
56
- <Row label={t("EKYC_CONNECTION_TYPE")} text={connectionDetails.connectionDetailsInfo.connectionType || t("CS_NA")} />
57
- <Row label={t("EKYC_METER_NO")} text={connectionDetails.connectionDetailsInfo.meterNumber || t("CS_NA")} />
58
- <Row label={t("EKYC_PHONE_NO")} text={connectionDetails.connectionDetailsInfo.phoneNumber || t("CS_NA")} />
59
- <Row label={t("EKYC_EMAIL")} text={connectionDetails.connectionDetailsInfo.email || t("CS_NA")} />
60
- <Row label={t("EKYC_STATUS")} text={connectionDetails.connectionDetailsInfo.statusflag || t("CS_NA")} />
54
+ <Row label={t("EKYC_CONSUMER_NAME")} text={connectionDetails.connectionDetails.consumerName || t("CS_NA")} />
55
+ <Row label={t("EKYC_ADDRESS")} text={connectionDetails.connectionDetails.address || t("CS_NA")} />
56
+ <Row label={t("EKYC_CONNECTION_TYPE")} text={connectionDetails.connectionDetails.connectionType || t("CS_NA")} />
57
+ <Row label={t("EKYC_METER_NO")} text={connectionDetails.connectionDetails.meterNumber || t("CS_NA")} />
58
+ <Row label={t("EKYC_PHONE_NO")} text={connectionDetails.connectionDetails.phoneNumber || t("CS_NA")} />
59
+ <Row label={t("EKYC_EMAIL")} text={connectionDetails.connectionDetails.email || t("CS_NA")} />
60
+ <Row label={t("EKYC_STATUS")} text={connectionDetails.connectionDetails.statusflag || t("CS_NA")} />
61
61
  </StatusTable>
62
62
  ) : (
63
63
  <CardLabel>{t("EKYC_NO_CONNECTION_DETAILS_FOUND")}</CardLabel>
@@ -44,11 +44,11 @@ const DesktopInbox = ({ tableConfig, filterComponent, ...props }) => {
44
44
  accessor: "citizenName",
45
45
  Cell: ({ row }) => <span>{row.original?.citizenName || "NA"}</span>,
46
46
  },
47
- {
48
- Header: t("EKYC_MOBILE_NO"),
49
- accessor: "mobileNumber",
50
- Cell: ({ row }) => <span>{row.original?.mobileNumber || "NA"}</span>,
51
- },
47
+ // {
48
+ // Header: t("EKYC_MOBILE_NO"),
49
+ // accessor: "mobileNumber",
50
+ // Cell: ({ row }) => <span>{row.original?.mobileNumber || "NA"}</span>,
51
+ // },
52
52
  {
53
53
  Header: t("EKYC_STATUS"),
54
54
  accessor: "status",
@@ -88,7 +88,8 @@ const SearchConsumer = ({ onSearch, searchParams, FilterComponent, children, ...
88
88
  />
89
89
  </div>
90
90
  </div>
91
-
91
+ </div>
92
+ <div style={{ display: "flex", justifyContent: "flex-end", marginTop: "20px" }}>
92
93
  <div style={{ display: "flex", gap: "12px", alignItems: "center" }}>
93
94
  <button
94
95
  type="button"
@@ -105,10 +106,18 @@ const SearchConsumer = ({ onSearch, searchParams, FilterComponent, children, ...
105
106
  >
106
107
  {t("ES_COMMON_CLEAR")}
107
108
  </button>
109
+
108
110
  <SubmitBar
109
111
  label={t("ES_COMMON_SEARCH")}
110
112
  onSubmit={onSubmit}
111
- style={{ margin: 0, borderRadius: "8px", height: "44px", padding: "0 32px", marginTop: "-55px" }}
113
+ style={{
114
+ margin: 0,
115
+ borderRadius: "8px",
116
+ height: "44px",
117
+ padding: "0 32px",
118
+ // ❌ remove this (it breaks alignment)
119
+ // marginTop: "-55px"
120
+ }}
112
121
  />
113
122
  </div>
114
123
  </div>