Skip to content

Commit

Permalink
Update index.js (#3358)
Browse files Browse the repository at this point in the history
added the type of the parameter 'options'
  • Loading branch information
livioc authored Sep 23, 2022
1 parent 159a4ce commit bca71ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/doc/panel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ const PanelDemo = () => {
tabName: 'TS Source',
content: `
import React from 'react';
import { Panel } from 'primereact/panel';
import { Panel, PanelHeaderTemplateOptions } from 'primereact/panel';
import { Ripple } from 'primereact/ripple';
const PanelDemo = () => {
const template = (options) => {
const template = (options: PanelHeaderTemplateOptions) => {
const toggleIcon = options.collapsed ? 'pi pi-chevron-down' : 'pi pi-chevron-up';
const className = \`\${options.className} justify-content-start\`;
const titleClassName = \`\${options.titleClassName} pl-1\`;
Expand Down

0 comments on commit bca71ee

Please sign in to comment.