Skip to content

Commit 3aaed12

Browse files
Copilotdamyanpetev
andauthored
fix: update tabs template to use correct React API (IgrTab with label prop, no IgrTabPanel)
Agent-Logs-Url: https://github.com/IgniteUI/igniteui-cli/sessions/f6fbe834-0e2e-424b-b785-98268e09e176 Co-authored-by: damyanpetev <3198469+damyanpetev@users.noreply.github.com>
1 parent 7851f8a commit 3aaed12

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

packages/cli/templates/react/igr-ts/tabs/default/files/src/app/__path__/__filePrefix__.tsx

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import style from './style.module.css';
2-
import { IgrTabs, IgrTab, IgrTabPanel } from 'igniteui-react';
2+
import { IgrTabs, IgrTab } from 'igniteui-react';
33
import 'igniteui-webcomponents/themes/light/bootstrap.css';
44

55
export default function $(ClassName)() {
@@ -8,11 +8,18 @@ export default function $(ClassName)() {
88
<h1 className={style.title}>Tabs</h1>
99
<div className={style.container}>
1010
<IgrTabs>
11-
<IgrTab panel="first" selected={true}><span>Albums</span></IgrTab>
12-
<IgrTab panel="second"><span>Favourites</span></IgrTab>
13-
<IgrTab panel="third" disabled={true}><span>Info</span></IgrTab>
14-
<IgrTabPanel slot="panel" id="first"><p>Sgt. Peppers Lonely Hearts Club Band</p><p>The Dark Side of the Moon</p><p>Thriller</p></IgrTabPanel>
15-
<IgrTabPanel slot="panel" id="second"><p>The Dark Side of the Moon</p><p>Led Zeppelin IV</p></IgrTabPanel>
11+
<IgrTab label="Albums" selected={true}>
12+
<p>Sgt. Peppers Lonely Hearts Club Band</p>
13+
<p>The Dark Side of the Moon</p>
14+
<p>Thriller</p>
15+
</IgrTab>
16+
<IgrTab label="Favourites">
17+
<p>The Dark Side of the Moon</p>
18+
<p>Led Zeppelin IV</p>
19+
</IgrTab>
20+
<IgrTab label="Info" disabled={true}>
21+
<p>No content available</p>
22+
</IgrTab>
1623
</IgrTabs>
1724
</div>
1825
</div>

0 commit comments

Comments
 (0)