diff --git a/components/doc/timeline/templatedoc.js b/components/doc/timeline/templatedoc.js index da73415bcc..963e4d95fa 100644 --- a/components/doc/timeline/templatedoc.js +++ b/components/doc/timeline/templatedoc.js @@ -95,7 +95,7 @@ interface TimelineEvent { } export default function TemplateDemo() { - const events: TimelineEvent = [ + const events: TimelineEvent[] = [ { status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0', image: 'game-controller.jpg' }, { status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' }, { status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' }, @@ -113,7 +113,7 @@ export default function TemplateDemo() { const customizedContent = (item: TimelineEvent) => { return ( - { item.image && {item.name}} + { item.image && {item.image}}

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!