frst-components 0.23.71 → 0.23.72
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.js
CHANGED
|
@@ -7508,7 +7508,9 @@ function ImpedimentosTab({ maxTabs, tabsList, showAddButton, onSaveNewImpediment
|
|
|
7508
7508
|
const openAddImpedimento = Boolean(addImpedimentoAnchor);
|
|
7509
7509
|
const openImpedimentoSelect = Boolean(impedimentoSelectAnchor);
|
|
7510
7510
|
React.useEffect(() => {
|
|
7511
|
-
|
|
7511
|
+
if (tabsList.length > allTabs.length) {
|
|
7512
|
+
setAllTabs(tabsList);
|
|
7513
|
+
}
|
|
7512
7514
|
}, [tabsList]);
|
|
7513
7515
|
React.useEffect(() => {
|
|
7514
7516
|
if (idSelectedTab) {
|
|
@@ -7547,6 +7549,7 @@ function ImpedimentosTab({ maxTabs, tabsList, showAddButton, onSaveNewImpediment
|
|
|
7547
7549
|
newArray.unshift(impedimento);
|
|
7548
7550
|
//atualiza o array de impedimentos
|
|
7549
7551
|
setAllTabs(newArray);
|
|
7552
|
+
handleClickTab(impedimento);
|
|
7550
7553
|
};
|
|
7551
7554
|
const renderTabs = (tabInfo, index) => {
|
|
7552
7555
|
return (jsxRuntime.jsx(Tab, { selected: tabInfo.id === selectedTab?.id, onClick: () => handleClickTab(tabInfo), children: jsxRuntime.jsx("p", { children: tabInfo.title }) }, index));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/impedimentosTab/index.tsx"],"names":[],"mappings":";AAYA,OAAO,EACH,oBAAoB,EAEvB,MAAM,mBAAmB,CAAA;AAc1B,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACpC,OAAO,EACP,QAAQ,EACR,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,UAAU,EACb,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/impedimentosTab/index.tsx"],"names":[],"mappings":";AAYA,OAAO,EACH,oBAAoB,EAEvB,MAAM,mBAAmB,CAAA;AAc1B,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACpC,OAAO,EACP,QAAQ,EACR,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,UAAU,EACb,EAAE,oBAAoB,eAqPtB"}
|