@antv/dumi-theme-antv 0.4.1 → 0.4.2

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.
@@ -48,7 +48,6 @@ export var Detail = function Detail(_ref) {
48
48
  remoteNews = _useState2[0],
49
49
  setRemoteNews = _useState2[1];
50
50
  var lang = useLocale().id;
51
- console.log(buttons, 'buttons');
52
51
  useEffect(function () {
53
52
  fetch(AssetsNewsURL).then(function (res) {
54
53
  return res.json();
@@ -90,7 +89,7 @@ export var Detail = function Detail(_ref) {
90
89
  borderRadius: shape === 'round' ? '1000px' : '12px'
91
90
  }, style),
92
91
  href: link[lang] ? link[lang] : link
93
- }, /*#__PURE__*/React.createElement("div", {
92
+ }, icon !== null && /*#__PURE__*/React.createElement("div", {
94
93
  className: styles.icon,
95
94
  style: icon ? {
96
95
  backgroundImage: "url(".concat(icon, ")")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/dumi-theme-antv",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "AntV website theme based on dumi2.",
5
5
  "types": "dist/types.d.ts",
6
6
  "scripts": {