hds-web 1.2.5 → 1.2.6
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.es.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/src/HDS/modules/navCard/navCard.js +13 -13
package/package.json
CHANGED
@@ -40,19 +40,19 @@ const tabCard = (tabContent) => (
|
|
40
40
|
)
|
41
41
|
|
42
42
|
export default function NavCard(props) {
|
43
|
-
const [activeTab, setActiveTab] = useState('');
|
43
|
+
// const [activeTab, setActiveTab] = useState('');
|
44
44
|
|
45
|
-
useEffect(() => {
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
}, [props.tabContent]);
|
45
|
+
// useEffect(() => {
|
46
|
+
// if (props.tabContent) {
|
47
|
+
// const tabNames = Object.keys(props.tabContent);
|
48
|
+
// setActiveTab(tabNames[0]);
|
49
|
+
// }
|
50
|
+
// }, [props.tabContent]);
|
51
51
|
|
52
|
-
function handleTabClick(tab) {
|
53
|
-
|
54
|
-
|
55
|
-
}
|
52
|
+
// function handleTabClick(tab) {
|
53
|
+
// setActiveTab(tab.name);
|
54
|
+
// // Perform any other actions based on the clicked tab
|
55
|
+
// }
|
56
56
|
|
57
57
|
return (
|
58
58
|
<>
|
@@ -67,9 +67,9 @@ export default function NavCard(props) {
|
|
67
67
|
/>
|
68
68
|
</div>
|
69
69
|
<div className='transition-all ease-in-out duration-1000'>
|
70
|
-
{props.tabContent &&
|
70
|
+
{/* {props.tabContent &&
|
71
71
|
props.tabContent[activeTab] &&
|
72
|
-
tabCard(props.tabContent[activeTab])}
|
72
|
+
tabCard(props.tabContent[activeTab])} */}
|
73
73
|
</div>
|
74
74
|
|
75
75
|
</div>}
|