Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix#6443 : Variable names fix #6444

Merged
merged 2 commits into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading