ordering-ui-admin-external 1.7.2 → 1.7.3

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.
@@ -34,8 +34,8 @@ var CountryFilterUI = function CountryFilterUI(props) {
34
34
  searchValue = props.searchValue,
35
35
  _onSearch = props.onSearch,
36
36
  handleClickFilterButton = props.handleClickFilterButton,
37
- countryCode = props.countryCode,
38
- handleChangeCode = props.handleChangeCode;
37
+ code = props.code,
38
+ setCode = props.setCode;
39
39
  var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
40
40
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
41
41
  t = _useLanguage2[1];
@@ -105,9 +105,9 @@ var CountryFilterUI = function CountryFilterUI(props) {
105
105
  return /*#__PURE__*/_react.default.createElement(_styles2.CountryItem, {
106
106
  key: country === null || country === void 0 ? void 0 : country.id,
107
107
  onClick: function onClick() {
108
- return handleChangeCode(country === null || country === void 0 ? void 0 : country.code);
108
+ return setCode(country === null || country === void 0 ? void 0 : country.code);
109
109
  }
110
- }, countryCode === (country === null || country === void 0 ? void 0 : country.code) ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, {
110
+ }, code === (country === null || country === void 0 ? void 0 : country.code) ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, {
111
111
  className: "checked"
112
112
  }) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null), /*#__PURE__*/_react.default.createElement("span", {
113
113
  className: "name"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-admin-external",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Ordering UI Admin Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -83,7 +83,7 @@
83
83
  "lodash": "^4.17.20",
84
84
  "moment": "^2.29.1",
85
85
  "moment-range": "^4.0.2",
86
- "ordering-components-admin-external": "1.7.1",
86
+ "ordering-components-admin-external": "1.7.2",
87
87
  "polished": "^3.6.7",
88
88
  "prop-types": "^15.7.2",
89
89
  "react-big-calendar": "^1.4.2",
@@ -19,8 +19,8 @@ const CountryFilterUI = (props) => {
19
19
  searchValue,
20
20
  onSearch,
21
21
  handleClickFilterButton,
22
- countryCode,
23
- handleChangeCode
22
+ code,
23
+ setCode
24
24
  } = props
25
25
 
26
26
  const [, t] = useLanguage()
@@ -84,8 +84,8 @@ const CountryFilterUI = (props) => {
84
84
  ) : (
85
85
  <>
86
86
  {currentPages?.map(country => (
87
- <CountryItem key={country?.id} onClick={() => handleChangeCode(country?.code)}>
88
- {countryCode === country?.code ? <RecordCircleFill className='checked' /> : <Circle />}
87
+ <CountryItem key={country?.id} onClick={() => setCode(country?.code)}>
88
+ {code === country?.code ? <RecordCircleFill className='checked' /> : <Circle />}
89
89
  <span className='name'>{country?.name}</span>
90
90
  </CountryItem>
91
91
  ))}