@plusscommunities/pluss-core-web 1.4.29 → 1.4.30

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": "@plusscommunities/pluss-core-web",
3
- "version": "1.4.29",
3
+ "version": "1.4.30",
4
4
  "description": "Core extension package for Pluss Communities platform",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {
@@ -86,6 +86,24 @@ class HubSidebar extends PureComponent {
86
86
  );
87
87
  }
88
88
 
89
+ renderHelpGuide = () => {
90
+ if (!this.props.helpGuide) return null
91
+
92
+ const { text, url } = this.props.helpGuide
93
+
94
+ const onHelpGuidePress = () => {
95
+ if (!url) return
96
+ window.open(url, '_blank')
97
+ }
98
+ return (
99
+ <div className="hubSidebar_helpGuideContainer">
100
+ <Button buttonType="outlined" isActive leftIcon="info-circle" narrow onClick={onHelpGuidePress}>
101
+ {text || 'Help Guide'}
102
+ </Button>
103
+ </div>
104
+ )
105
+ }
106
+
89
107
  render() {
90
108
  return (
91
109
  <div
@@ -99,6 +117,9 @@ class HubSidebar extends PureComponent {
99
117
  return this.renderSection(section, i);
100
118
  })}
101
119
  </div>
120
+
121
+ {/* Help Guide Button. */}
122
+ {this.renderHelpGuide()}
102
123
  </div>
103
124
  );
104
125
  }