Skip to content

Instantly share code, notes, and snippets.

@httpJunkie
Last active March 10, 2019 01:18
Show Gist options
  • Save httpJunkie/17a90811d846336dacf4d5c9a45bcfff to your computer and use it in GitHub Desktop.
Save httpJunkie/17a90811d846336dacf4d5c9a45bcfff to your computer and use it in GitHub Desktop.
Kendo Sales Dashboard - PanelBarContainer v1
import React from 'react';
import { PanelBar, PanelBarItem } from '@progress/kendo-react-layout';
import { panelBarData } from '../data/appData';
const imageUrl = (imageName) => ('img/'+ imageName +'.jpg');
export const PanelBarContainer = () => (
<PanelBar >
<PanelBarItem expanded={true} title="My Teammates">
<div>
{panelBarData.teammates.map((item, idx) => (
<div className={idx === 0 ? 'teammate k-state-selected' : 'teammate'} id={item.firstName + ' ' + item.lastName} key={idx}>
<img src={imageUrl(item.firstName)} alt={item.firstName + ' ' + item.lastName} />
<span className="mate-info">
<h2>{item.firstName + ' ' + item.lastName}</h2>
<p>{item.position}</p>
</span>
</div>
))}
</div>
</PanelBarItem>
<PanelBarItem title={'Projects'} >
<PanelBarItem title={'Sales Reports'} >
{panelBarData.salesReports.map((item, idx) => (
<PanelBarItem title={item.title} key={idx} />
))}
</PanelBarItem >
</PanelBarItem>
<PanelBarItem title="Communication" disabled={true} />
</PanelBar>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment