From fe982a3c163918d3411774d5cc8ade6130b44be0 Mon Sep 17 00:00:00 2001 From: livioc Date: Fri, 23 Sep 2022 11:01:55 +0200 Subject: [PATCH] Update index.js added the type of the parameter 'options' --- components/doc/panel/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/doc/panel/index.js b/components/doc/panel/index.js index 3482981a18..4922d289e3 100644 --- a/components/doc/panel/index.js +++ b/components/doc/panel/index.js @@ -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\`;