Skip to content

Commit

Permalink
Merge pull request primefaces#6444 from Rekl0w/Fix#6443
Browse files Browse the repository at this point in the history
Fix#6443 : Variable names fix
  • Loading branch information
nitrogenous authored Apr 22, 2024
2 parents bbfdb4b + 790deed commit 6ef3a90
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/doc/tabview/scrollabledoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { DocSectionText } from '@/components/doc/common/docsectiontext';
import { TabPanel, TabView } from '@/components/lib/tabview/TabView';

export function ScrollableDoc(props) {
const tabs = Array.from({ length: 50 }, (_, i) => ({ title: `Tab ${i + 1}`, content: `Tab ${i + 1} Content` }));
const scrollableTabs = Array.from({ length: 50 }, (_, i) => ({ title: `Tab ${i + 1}`, content: `Tab ${i + 1} Content` }));
const code = {
basic: `
<TabView scrollable>
{tabs.map((tab) => {
{scrollableTabs.map((tab) => {
return (
<TabPanel key={tab.title} header={tab.title}>
<p className="m-0">{tab.content}</p>
Expand All @@ -26,7 +26,7 @@ export default function ScrollableDemo() {
return (
<div className="card">
<TabView scrollable>
{tabs.map((tab) => {
{scrollableTabs.map((tab) => {
return (
<TabPanel key={tab.title} header={tab.title}>
<p className="m-0">{tab.content}</p>
Expand All @@ -44,11 +44,11 @@ import { TabView, TabPanel } from 'primereact/tabview';
export default function ScrollableDemo() {
const scrollableTabs = Array.from({ length: 50 }, (_, i) => ({ title: \`Tab \${i + 1}\`, content: \`Tab \${i + 1} Content\` }))
return (
<div className="card">
<TabView scrollable>
{tabs.map((tab) => {
{scrollableTabs.map((tab) => {
return (
<TabPanel key={tab.title} header={tab.title}>
<p className="m-0">{tab.content}</p>
Expand All @@ -71,7 +71,7 @@ export default function ScrollableDemo() {
</DocSectionText>
<div className="card">
<TabView scrollable>
{tabs.map((tab) => {
{scrollableTabs.map((tab) => {
return (
<TabPanel key={tab.title} header={tab.title}>
<p className="m-0">{tab.content}</p>
Expand Down

0 comments on commit 6ef3a90

Please sign in to comment.