1 import { Component } from 'inferno';
2 import { CommunityForm } from './community-form';
4 export class CreateCommunity extends Component<any, any> {
6 constructor(props: any, context: any) {
8 this.handleCommunityCreate = this.handleCommunityCreate.bind(this);
12 document.title = "Create Forum - Lemmy";
17 <div class="container">
19 <div class="col-12 col-lg-6 mb-4">
21 <CommunityForm onCreate={this.handleCommunityCreate}/>
28 handleCommunityCreate(id: number) {
29 this.props.history.push(`/community/${id}`);