@pushwoosh/smart-components-kit 1.0.75 → 1.0.77
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/DocsButton/hooks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useSPAContext } from '@pushwoosh/spa-context';
|
|
2
2
|
const PUSHWOOSH_DOCS_BASE = 'https://docs.pushwoosh.com';
|
|
3
|
-
const WAVESEND_DOCS_BASE = 'https://docs.
|
|
3
|
+
const WAVESEND_DOCS_BASE = 'https://docs.pushwoosh.com/ru';
|
|
4
4
|
export function useIsAllowDocsButton() {
|
|
5
5
|
const {
|
|
6
6
|
environment
|
|
@@ -83,7 +83,8 @@ export const ExportCsvBanner = ({
|
|
|
83
83
|
hide();
|
|
84
84
|
onClose === null || onClose === void 0 || onClose();
|
|
85
85
|
}, [hide, onClose]);
|
|
86
|
-
|
|
86
|
+
const hasRenderableContent = exportTask && ['STATUS_SUCCESS', 'STATUS_PENDING', 'STATUS_FAILED'].includes(exportTask.status);
|
|
87
|
+
if (!exportTask || isHidden || !hasRenderableContent) return null;
|
|
87
88
|
const {
|
|
88
89
|
filename,
|
|
89
90
|
status,
|
package/package.json
CHANGED