@portnet/ui 5.0.31 → 5.0.32
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.
|
@@ -3623,6 +3623,15 @@ const PuiHelpWidget = _ref7 => {
|
|
|
3623
3623
|
const [guideData, setGuideData] = (0, _react.useState)(null);
|
|
3624
3624
|
const [faqData, setFaqData] = (0, _react.useState)(null);
|
|
3625
3625
|
const [loadingGuide, setLoadingGuide] = (0, _react.useState)(false);
|
|
3626
|
+
(0, _react.useEffect)(() => {
|
|
3627
|
+
const openNouvelleReclamation = () => {
|
|
3628
|
+
setReclamationModalOpen(true);
|
|
3629
|
+
};
|
|
3630
|
+
window.addEventListener("open-nouvelle-reclamation", openNouvelleReclamation);
|
|
3631
|
+
return () => {
|
|
3632
|
+
window.removeEventListener("open-nouvelle-reclamation", openNouvelleReclamation);
|
|
3633
|
+
};
|
|
3634
|
+
}, []);
|
|
3626
3635
|
(0, _react.useEffect)(() => {
|
|
3627
3636
|
async function fetchGuideData() {
|
|
3628
3637
|
if (!showGuides || !currentProjectCode || !guidesPanelOpen) return;
|