Skip to content

Commit

Permalink
Issue-1647 : Fixed build errors (#2116)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhushan-ebi authored Sep 10, 2024
1 parent e91d5f8 commit 5cd27a6
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 16 deletions.
38 changes: 23 additions & 15 deletions components/vf-tabs/vf-tabs.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,50 @@ import { vfTabs } from "@visual-framework/vf-tabs/vf-tabs";

function VfTabs(tabsData) {
useEffect(() => {
vfTabs();
vfTabs();
}, []);
return (
<>
<div className="vf-tabs">
<ul className="vf-tabs__list" data-vf-js-tabs>
{Object.entries(tabsData).map((tab_forlink) => {
{Object.entries(tabsData).map(tab_forlink => {
return (
<li className="vf-tabs__item" key={tab_forlink[0]}>
<a
className="vf-tabs__link"
href={`#vf-tabs__section--${tab_forlink[1][1].tab_number}`}
dangerouslySetInnerHTML={{__html: tab_forlink[1][0].tab_title}}
>
</a>
dangerouslySetInnerHTML={{
__html: tab_forlink[1][0].tab_title
}}
></a>
</li>
)
})
}
);
})}
</ul>
</div>
<div className="vf-tabs-content" data-vf-js-tabs-content>
{Object.entries(tabsData).map((tab_forsection) => {
{Object.entries(tabsData).map(tab_forsection => {
return (
<section
className="vf-tabs__section"
id={`vf-tabs__section--${tab_forsection[1][1].tab_number}`}
key={tab_forsection[0]}
>

{tab_forsection[1][2].tab_heading !== "" ? <h2 dangerouslySetInnerHTML={{__html:`${tab_forsection[1][2].tab_heading}`}}></h2> : null}
<p dangerouslySetInnerHTML={{__html:`${tab_forsection[1][3].tab_content}`}}></p>
{tab_forsection[1][2].tab_heading !== "" ? (
<h2
dangerouslySetInnerHTML={{
__html: `${tab_forsection[1][2].tab_heading}`
}}
></h2>
) : null}
<p
dangerouslySetInnerHTML={{
__html: `${tab_forsection[1][3].tab_content}`
}}
></p>
</section>
)
})
}
);
})}
</div>
</>
);
Expand Down
4 changes: 4 additions & 0 deletions tools/vf-sass-compilation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.1.25

* Degraded stylelint to fix build errors [Tracking issue](https://github.com/visual-framework/vf-core/issues/1647)

### 1.1.24

* Dependency update [Tracking issue](https://github.com/visual-framework/vf-core/issues/1647)
Expand Down
2 changes: 1 addition & 1 deletion tools/vf-sass-compilation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"rollup": "^4.0.0",
"rollup-plugin-includepaths": "^0.2.4",
"sass": "1.77.6",
"stylelint": "^16.0.0",
"stylelint": "^15.0.0",
"stylelint-order": "^6.0.0",
"stylelint-scss": "^6.0.0",
"vinyl-source-stream": "^2.0.0"
Expand Down

0 comments on commit 5cd27a6

Please sign in to comment.