Skip to content

Commit

Permalink
Fix #6091: Timeline template typescript example (#6092)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Mar 15, 2024
1 parent cc96020 commit 822d1c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/doc/timeline/templatedoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand All @@ -113,7 +113,7 @@ export default function TemplateDemo() {
const customizedContent = (item: TimelineEvent) => {
return (
<Card title={item.status} subTitle={item.date}>
{ item.image && <img src={\`https://primefaces.org/cdn/primereact/images/product/\${item.image}\`} alt={item.name} width={200} className="shadow-1" />}
{ item.image && <img src={\`https://primefaces.org/cdn/primereact/images/product/\${item.image}\`} alt={item.image} width={200} className="shadow-1" />}
<p>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!</p>
<Button label="Read more" className="p-button-text"></Button>
Expand Down

0 comments on commit 822d1c1

Please sign in to comment.