Skip to content

Commit

Permalink
Fix #3883: Sidebar Doc Enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
habubey committed Jan 6, 2023
1 parent 7417b32 commit 7c741f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Button } from '../../lib/button/Button';
import { DocSectionCode } from '../common/docsectioncode';
import { DocSectionText } from '../common/docsectiontext';

export function CustomDoc(props) {
export function TemplateDoc(props) {
const [visibleCustomToolbar, setVisibleCustomToolbar] = useState(false);

const customIcons = (
Expand All @@ -30,7 +30,7 @@ import React, { useState } from 'react';
import { Sidebar } from 'primereact/sidebar';
import { Button } from 'primereact/button';
export default function CustomDoc() {
export default function TemplateDoc() {
const [visibleCustomToolbar, setVisibleCustomToolbar] = useState(false);
const customIcons = (
Expand Down Expand Up @@ -59,7 +59,7 @@ import React, { useState } from 'react';
import { Sidebar } from 'primereact/sidebar';
import { Button } from 'primereact/button';
export default function CustomDoc() {
export default function TemplateDoc() {
const [visibleCustomToolbar, setVisibleCustomToolbar] = useState(false);
const customIcons = (
Expand Down
8 changes: 4 additions & 4 deletions pages/sidebar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { DocActions } from '../../components/doc/common/docactions';
import { BasicDoc } from '../../components/doc/sidebar/basicdoc';
import { ImportDoc } from '../../components/doc/sidebar/importdoc';
import { PositionDoc } from '../../components/doc/sidebar/positiondoc';
import { CustomDoc } from '../../components/doc/sidebar/customdoc';
import { TemplateDoc } from '../../components/doc/sidebar/templatedoc';
import { FullScreenDoc } from '../../components/doc/sidebar/fullscreendoc';
import { ApiDoc } from '../../components/doc/sidebar/apidoc';
import { SizeDoc } from '../../components/doc/sidebar/sizedoc';
Expand Down Expand Up @@ -38,9 +38,9 @@ const SidebarDemo = () => {
component: FullScreenDoc
},
{
id: 'custom',
label: 'Custom',
component: CustomDoc
id: 'template',
label: 'Template',
component: TemplateDoc
},
{
id: 'api',
Expand Down

0 comments on commit 7c741f2

Please sign in to comment.