diff options
author | Dessalines <tyhou13@gmx.com> | 2019-04-28 17:19:04 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-04-28 17:19:04 -0700 |
commit | 1769a62aacc624dc56d504b6e95277892f819f97 (patch) | |
tree | cfa65cb9ea1804452d1de6a95efe54713b088274 /ui/src/components/home.tsx | |
parent | 4625aa3060840aa7c603c20c6f5f8d7f24ffcb8e (diff) |
Adding better community and main page routing, with sorting and type in url.
Diffstat (limited to 'ui/src/components/home.tsx')
-rw-r--r-- | ui/src/components/home.tsx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/ui/src/components/home.tsx b/ui/src/components/home.tsx index cebe222b..e69de29b 100644 --- a/ui/src/components/home.tsx +++ b/ui/src/components/home.tsx @@ -1,24 +0,0 @@ -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 type={this.listType()}/> - ) - } - - componentDidMount() { - document.title = "Lemmy"; - } - - listType(): ListingType { - return (this.props.match.path == '/all') ? ListingType.All : ListingType.Subscribed; - } -} |