mirror of https://github.com/LemmyNet/lemmy
parent
ff013ccfc2
commit
fe52d594f6
@ -1,12 +1,20 @@
|
||||
import { Component } from 'inferno';
|
||||
import { Main } from './main';
|
||||
import { ListingType } from '../interfaces';
|
||||
|
||||
export class Home extends Component<any, any> {
|
||||
|
||||
constructor(props: any, context: any) {
|
||||
super(props, context);
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Main />
|
||||
<Main type={this.listType()}/>
|
||||
)
|
||||
}
|
||||
|
||||
listType(): ListingType {
|
||||
return (this.props.match.path == '/all') ? ListingType.All : ListingType.Subscribed;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue