1 import { Component } from 'inferno';
2 import { CommunityForm } from './community-form';
3 import { Community } from '../interfaces';
5 export class CreateCommunity extends Component<any, any> {
7 constructor(props: any, context: any) {
9 this.handleCommunityCreate = this.handleCommunityCreate.bind(this);
13 document.title = "Create Community - Lemmy";
18 <div class="container">
20 <div class="col-12 col-lg-6 mb-4">
21 <h5>Create Community</h5>
22 <CommunityForm onCreate={this.handleCommunityCreate}/>
29 handleCommunityCreate(community: Community) {
30 this.props.history.push(`/c/${community.name}`);