@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/dist/index.cjs.js +47 -647
- package/dist/index.esm.js +47 -648
- package/dist/index.umd.js +47 -647
- package/package.json +1 -1
- package/src/components/HubSidebar.js +21 -0
- package/src/helper/helper.js +0 -688
- package/src/index.js +2 -1
- package/src/urls.js +21 -0
package/package.json
CHANGED
|
@@ -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
|
}
|