cozy-bar 8.9.2 → 8.9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-bar",
3
- "version": "8.9.2",
3
+ "version": "8.9.3",
4
4
  "description": "cozy-bar.js library, a small lib provided by cozy-stack to inject the Cozy-bar component into each app",
5
5
  "main": "dist/cozy-bar.js",
6
6
  "author": "Cozy Cloud <contact@cozycloud.cc> (https://cozy.io/)",
@@ -65,7 +65,6 @@ export class AppItem extends React.Component {
65
65
 
66
66
  render() {
67
67
  const { useHomeIcon, app } = this.props
68
-
69
68
  const dataIcon = app.slug ? `icon-${app.slug}` : ''
70
69
  const appName = getAppDisplayName(app)
71
70
 
@@ -74,6 +73,7 @@ export class AppItem extends React.Component {
74
73
  onAppSwitch={this.onAppSwitch}
75
74
  slug={app.slug}
76
75
  href={this.buildAppUrl(app.href) || ''}
76
+ app={app}
77
77
  >
78
78
  {({ onClick, href }) => {
79
79
  return (
@@ -94,7 +94,8 @@ export var AppItem = /*#__PURE__*/function (_React$Component) {
94
94
  return /*#__PURE__*/React.createElement(AppLinker, {
95
95
  onAppSwitch: this.onAppSwitch,
96
96
  slug: app.slug,
97
- href: this.buildAppUrl(app.href) || ''
97
+ href: this.buildAppUrl(app.href) || '',
98
+ app: app
98
99
  }, function (_ref) {
99
100
  var onClick = _ref.onClick,
100
101
  href = _ref.href;