Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekbh committed Oct 18, 2019
1 parent ab78612 commit c8343dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions ts/IconToggle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import {bind} from 'bind-decorator';
import {h} from 'preact';
import MaterialComponent from '../Base/MaterialComponent';

interface IconToggleData {
interface IIconToggleData {
label?: string;
content?: string;
cssClass?: string;
}

export interface IIconToggleProps {
'data-toggle-on'?: IconToggleData; // TODO: wrong docs?
'data-toggle-off'?: IconToggleData; // TODO: wrong docs?
'data-toggle-on'?: IIconToggleData; // TODO: wrong docs?
'data-toggle-off'?: IIconToggleData; // TODO: wrong docs?
disabled?: boolean;
}

Expand Down
11 changes: 5 additions & 6 deletions ts/TextField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,15 @@ export class TextFieldInput extends MaterialComponent<
this.state.jsComponentAttached
? undefined
: props.label + this.props.required
? '*'
: ''
? '*'
: ''
}
{...props}
/>
)}
{props.label &&
this.state.jsComponentAttached && (
<Label for={props.id}>{props.label}</Label>
)}
{props.label && this.state.jsComponentAttached && (
<Label for={props.id}>{props.label}</Label>
)}
{props.trailingIcon ? (
<Icon className="mdc-text-field__icon">{props.trailingIcon}</Icon>
) : null}
Expand Down

0 comments on commit c8343dd

Please sign in to comment.