refactor(slot): remove render() functions w/ only <slot/>

This commit is contained in:
Adam Bradley
2018-03-06 20:19:56 -06:00
parent d313e69013
commit a8b90a3eb1
32 changed files with 4 additions and 111 deletions

View File

@ -11,8 +11,4 @@ import { Component } from '@stencil/core';
theme: 'avatar'
}
})
export class Avatar {
render() {
return <slot></slot>;
}
}
export class Avatar {}

View File

@ -27,7 +27,4 @@ export class Badge {
*/
@Prop() mode: 'ios' | 'md';
render() {
return <slot></slot>;
}
}

View File

@ -7,8 +7,4 @@ import { Component } from '@stencil/core';
theme: 'bar-buttons'
}
})
export class Buttons {
render() {
return <slot></slot>;
}
}
export class Buttons {}

View File

@ -23,7 +23,4 @@ export class CardContent {
*/
@Prop() mode: 'ios' | 'md';
render() {
return <slot></slot>;
}
}

View File

@ -42,7 +42,4 @@ export class CardHeader {
};
}
render() {
return <slot></slot>;
}
}

View File

@ -31,7 +31,4 @@ export class CardSubtitle {
};
}
render() {
return <slot></slot>;
}
}

View File

@ -32,7 +32,4 @@ export class CardTitle {
};
}
render() {
return <slot></slot>;
}
}

View File

@ -24,7 +24,4 @@ export class Card {
*/
@Prop() mode: 'ios' | 'md';
render() {
return <slot></slot>;
}
}

View File

@ -24,7 +24,4 @@ export class Chip {
*/
@Prop() mode: 'ios' | 'md';
render() {
return <slot></slot>;
}
}

View File

@ -30,9 +30,4 @@ export class FabList {
};
}
render() {
return (
<slot></slot>
);
}
}

View File

@ -36,7 +36,4 @@ export class Footer {
};
}
render() {
return <slot></slot>;
}
}

View File

@ -36,7 +36,4 @@ export class Header {
};
}
render() {
return <slot></slot>;
}
}

View File

@ -39,9 +39,6 @@ export class HideWhen implements DisplayWhen {
};
}
render() {
return <slot></slot>;
}
}

View File

@ -233,8 +233,4 @@ export class InfiniteScroll {
};
}
render() {
return <slot></slot>;
}
}

View File

@ -11,8 +11,4 @@ import { Component } from '@stencil/core';
theme: 'item-group'
}
})
export class ItemGroup {
render() {
return <slot></slot>;
}
}
export class ItemGroup {}

View File

@ -47,7 +47,4 @@ export class ItemOptions {
};
}
render() {
return <slot></slot>;
}
}

View File

@ -73,7 +73,4 @@ export class Label {
});
}
render() {
return <slot></slot>;
}
}

View File

@ -27,7 +27,4 @@ export class ListHeader {
*/
@Prop() mode: 'ios' | 'md';
render() {
return <slot></slot>;
}
}

View File

@ -39,7 +39,4 @@ export class List {
return false;
}
render() {
return <slot></slot>;
}
}

View File

@ -60,9 +60,6 @@ export class MenuToggle {
};
}
render() {
return <slot></slot>;
}
}
function getMenuController(): Promise<HTMLIonMenuControllerElement> {

View File

@ -16,8 +16,4 @@ export class NavPop {
return Promise.resolve(null);
}
render() {
return <slot></slot>;
}
}

View File

@ -21,8 +21,4 @@ export class NavPush {
return Promise.resolve(null);
}
render() {
return <slot></slot>;
}
}

View File

@ -20,8 +20,4 @@ export class NavSetRoot {
return Promise.resolve(null);
}
render() {
return <slot></slot>;
}
}

View File

@ -27,7 +27,4 @@ export class Note {
*/
@Prop() mode: 'ios' | 'md';
render() {
return <slot></slot>;
}
}

View File

@ -175,9 +175,6 @@ export class RadioGroup implements ComponentDidLoad, RadioGroupInput {
return hostAttrs;
}
render() {
return <slot></slot>;
}
}
let radioGroupIds = 0;

View File

@ -83,7 +83,4 @@ export class Segment {
};
}
render() {
return <slot></slot>;
}
}

View File

@ -60,10 +60,6 @@ export class SelectOption {
};
}
render() {
return <slot></slot>;
}
}

View File

@ -39,9 +39,6 @@ export class ShowWhen implements DisplayWhen {
};
}
render() {
return <slot></slot>;
}
}

View File

@ -16,7 +16,4 @@ export class Slide {
};
}
render() {
return <slot></slot>;
}
}

View File

@ -149,9 +149,6 @@ export class SplitPane {
};
}
render() {
return <slot></slot>;
}
}

View File

@ -27,7 +27,4 @@ export class Text {
*/
@Prop() mode: 'ios' | 'md';
render() {
return <slot></slot>;
}
}

View File

@ -11,8 +11,4 @@ import { Component } from '@stencil/core';
theme: 'thumbnail'
}
})
export class Thumbnail {
render() {
return <slot></slot>;
}
}
export class Thumbnail {}