Merge pull request #26356 from Reggino/material-ui

Material ui was missing proper support for <List>
This commit is contained in:
Nathan Shively-Sanders
2018-06-25 08:14:38 -07:00
committed by GitHub
2 changed files with 5 additions and 8 deletions
+4 -7
View File
@@ -1,4 +1,4 @@
// Type definitions for material-ui 0.20
// Type definitions for material-ui 0.21
// Project: https://github.com/callemall/material-ui
// Definitions by: Nathan Brown <https://github.com/ngbrown>
// Igor Beagorudsky <https://github.com/theigor>
@@ -12,6 +12,7 @@
// Dan Jones <https://github.com/dan-j>
// Daisuke Mino <https://github.com/minodisk>
// Sam Walsh <https://github.com/samwalshnz>
// Tim de Koning <https://github.com/reggino>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
@@ -1144,12 +1145,8 @@ declare namespace __MaterialUI {
}
namespace List {
export interface ListProps {
// <Paper/> is the element that get the 'other' properties
style?: React.CSSProperties;
}
export class List extends React.Component<ListProps> {
}
export interface ListProps extends React.HTMLAttributes<{}> {}
export class List extends React.Component<ListProps> {}
export interface ListItemProps extends EnhancedButtonProps {
// <EnhancedButton/> is the element that get the 'other' properties
+1 -1
View File
@@ -2536,7 +2536,7 @@ const AutoCompleteExampleFilters = () => (
// "http://www.material-ui.com/#/components/avatar"
const AvatarExampleSimple = () => (
<List>
<List className="foo">
<ListItem
disabled={true}
leftAvatar={