Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
feat(component): integrate icon in pattern list
Browse files Browse the repository at this point in the history
fix #91
  • Loading branch information
Alexpeschel authored and lkuechler committed Dec 20, 2017
1 parent 1642d7b commit 6f6cac1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/component/container/pattern_list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export class PatternListContainer extends React.Component<PatternListContainerPr
result.push({
value: pattern.getId(),
draggable: true,
icon: pattern.getIconPath(),
handleDragStart: (e: React.DragEvent<HTMLElement>) => {
this.handleDragStart(e, pattern);
},
Expand Down Expand Up @@ -109,6 +110,7 @@ export class PatternListContainer extends React.Component<PatternListContainerPr
draggable={props.draggable}
handleDragStart={props.handleDragStart}
key={index}
icon={props.icon}
onClick={props.onClick}
>
{props.value}
Expand Down

0 comments on commit 6f6cac1

Please sign in to comment.