diff --git a/src/component/container/pattern_list.tsx b/src/component/container/pattern_list.tsx index fbf2fb7c8..959f9c4b0 100644 --- a/src/component/container/pattern_list.tsx +++ b/src/component/container/pattern_list.tsx @@ -1,12 +1,10 @@ import Input from '../../lsg/patterns/input/'; import { PatternFolder } from '../../store/pattern/folder'; -// import { Headline } from '../../lsg/patterns/headline'; import List, { Label, Li, ListItemProps, Ul, Value } from '../../lsg/patterns/list'; import { action } from 'mobx'; import { observer } from 'mobx-react'; import { PageElement } from '../../store/page/page_element'; import { Pattern } from '../../store/pattern'; -// import PatternListItem from '../../lsg/patterns/pattern-list-item'; import * as React from 'react'; import { Store } from '../../store'; @@ -39,9 +37,7 @@ export class PatternList extends React.Component { return (
- - {list} - + {list}
); } @@ -83,7 +79,7 @@ export class PatternList extends React.Component { return (
  • { return (
  • ; + handleDragStart?: React.DragEventHandler; +} + const StyledUl = styledComponents.ul` box-sizing: border-box; padding: 0 0 0 15px; @@ -46,47 +54,35 @@ const StyledLabel = styledComponents.span` padding-right 4px; `; -const StyledValue = styledComponents.span` +const StyledValue = styledComponents.span` color: ${colors.black.toString()}; `; export class Ul extends React.Component<{}> { public render(): JSX.Element { - return ( - - {this.props.children} - - ); + return {this.props.children}; } } -export class Li extends React.Component<{}> { +export class Li extends React.Component { + public constructor(props: LiProps) { + super(props); + } + public render(): JSX.Element { - return ( - - {this.props.children} - - ); + return {this.props.children}; } } export class Label extends React.Component<{}> { public render(): JSX.Element { - return ( - - {this.props.children} - - ); + return {this.props.children}; } } export class Value extends React.Component<{}> { public render(): JSX.Element { - return ( - - {this.props.children} - - ); + return {this.props.children}; } }