@arcblock/ux 2.1.52 → 2.1.53

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.
@@ -142,5 +142,5 @@ RelativeTime.defaultProps = {
142
142
  from: '',
143
143
  to: '',
144
144
  type: 'relative',
145
- tz: ''
145
+ tz: undefined
146
146
  };
package/lib/Util/index.js CHANGED
@@ -236,7 +236,7 @@ const createDateFormater = format => (date, _ref2) => {
236
236
 
237
237
  let instance = dateTool(date);
238
238
 
239
- if (typeof tz !== 'undefined') {
239
+ if (tz) {
240
240
  instance = instance.tz(tz);
241
241
  }
242
242
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "2.1.52",
3
+ "version": "2.1.53",
4
4
  "description": "Common used react components for arcblock products",
5
5
  "keywords": [
6
6
  "react",
@@ -52,10 +52,10 @@
52
52
  "react": ">=18.1.0",
53
53
  "react-ga": "^2.7.0"
54
54
  },
55
- "gitHead": "f18933f9572861a3484438906614094b9497719e",
55
+ "gitHead": "00b76f602f945f510fe002f8a16b120327a3f068",
56
56
  "dependencies": {
57
- "@arcblock/icons": "^2.1.52",
58
- "@arcblock/react-hooks": "^2.1.52",
57
+ "@arcblock/icons": "^2.1.53",
58
+ "@arcblock/react-hooks": "^2.1.53",
59
59
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
60
60
  "@emotion/react": "^11.9.0",
61
61
  "@emotion/styled": "^11.8.1",
@@ -89,5 +89,5 @@ RelativeTime.defaultProps = {
89
89
  from: '',
90
90
  to: '',
91
91
  type: 'relative',
92
- tz: '',
92
+ tz: undefined,
93
93
  };
package/src/Util/index.js CHANGED
@@ -190,7 +190,7 @@ const createDateFormater =
190
190
 
191
191
  let instance = dateTool(date);
192
192
 
193
- if (typeof tz !== 'undefined') {
193
+ if (tz) {
194
194
  instance = instance.tz(tz);
195
195
  }
196
196