ordering-ui-admin-external 1.35.2 → 1.35.4

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.
@@ -59,7 +59,7 @@ var DriverMapMarkerAndInfo = function DriverMapMarkerAndInfo(props) {
59
59
  }, group.name, ",");
60
60
  })), (driver === null || driver === void 0 ? void 0 : driver.last_location_at) && /*#__PURE__*/_react.default.createElement(_styles.TextContainer, null, /*#__PURE__*/_react.default.createElement(_styles.Text, {
61
61
  fontWeight: "bold"
62
- }, t('LAST_LOCATION', 'Last location'), ":"), /*#__PURE__*/_react.default.createElement(_styles.Text, null, parseDate(driver.last_location_at)))), /*#__PURE__*/_react.default.createElement(_styles.WrapperMapMarker, {
62
+ }, t('LAST_ORDER_AT', 'Last order at'), ":"), /*#__PURE__*/_react.default.createElement(_styles.Text, null, parseDate(driver.last_order_assigned_at)))), /*#__PURE__*/_react.default.createElement(_styles.WrapperMapMarker, {
63
63
  offline: !(driver.enabled && driver.available && !driver.busy),
64
64
  onMouseOver: function onMouseOver() {
65
65
  return setInfoShow(true);
@@ -78,9 +78,7 @@ var InterActOrderMarker = function InterActOrderMarker(props) {
78
78
  }, group.name, ",");
79
79
  })), (driver === null || driver === void 0 ? void 0 : driver.last_location_at) && /*#__PURE__*/_react.default.createElement(_styles.TextContainer, null, /*#__PURE__*/_react.default.createElement(_styles.Text, {
80
80
  fontWeight: "bold"
81
- }, t('LAST_LOCATION', 'Last location'), ":"), /*#__PURE__*/_react.default.createElement(_styles.Text, null, parseDate(driver.last_location_at, {
82
- utc: false
83
- }))))), /*#__PURE__*/_react.default.createElement(_styles.WrapperMapMarker, {
81
+ }, t('LAST_LOCATION', 'Last location'), ":"), /*#__PURE__*/_react.default.createElement(_styles.Text, null, parseDate(driver.last_location_at))))), /*#__PURE__*/_react.default.createElement(_styles.WrapperMapMarker, {
84
82
  onMouseOver: function onMouseOver() {
85
83
  return setInfoShow(true);
86
84
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-admin-external",
3
- "version": "1.35.2",
3
+ "version": "1.35.4",
4
4
  "description": "Ordering UI Admin Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -56,9 +56,9 @@ export const DriverMapMarkerAndInfo = (props) => {
56
56
  {driver?.last_location_at && (
57
57
  <TextContainer>
58
58
  <Text fontWeight='bold'>
59
- {t('LAST_LOCATION', 'Last location')}:
59
+ {t('LAST_ORDER_AT', 'Last order at')}:
60
60
  </Text>
61
- <Text>{parseDate(driver.last_location_at)}</Text>
61
+ <Text>{parseDate(driver.last_order_assigned_at)}</Text>
62
62
  </TextContainer>
63
63
  )}
64
64
  </DriverInfo>
@@ -133,7 +133,7 @@ export const InterActOrderMarker = (props) => {
133
133
  <Text fontWeight='bold'>
134
134
  {t('LAST_LOCATION', 'Last location')}:
135
135
  </Text>
136
- <Text>{parseDate(driver.last_location_at, { utc: false })}</Text>
136
+ <Text>{parseDate(driver.last_location_at)}</Text>
137
137
  </TextContainer>
138
138
  )}
139
139
  </>