summaryrefslogtreecommitdiffstats
path: root/ui/src/components/create-community.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/components/create-community.tsx')
-rw-r--r--ui/src/components/create-community.tsx15
1 files changed, 8 insertions, 7 deletions
diff --git a/ui/src/components/create-community.tsx b/ui/src/components/create-community.tsx
index 61245e73..f16b6425 100644
--- a/ui/src/components/create-community.tsx
+++ b/ui/src/components/create-community.tsx
@@ -6,14 +6,15 @@ import { i18n } from '../i18next';
import { T } from 'inferno-i18next';
export class CreateCommunity extends Component<any, any> {
-
constructor(props: any, context: any) {
super(props, context);
this.handleCommunityCreate = this.handleCommunityCreate.bind(this);
}
componentDidMount() {
- document.title = `${i18n.t('create_community')} - ${WebSocketService.Instance.site.name}`;
+ document.title = `${i18n.t('create_community')} - ${
+ WebSocketService.Instance.site.name
+ }`;
}
render() {
@@ -21,17 +22,17 @@ export class CreateCommunity extends Component<any, any> {
<div class="container">
<div class="row">
<div class="col-12 col-lg-6 offset-lg-3 mb-4">
- <h5><T i18nKey="create_community">#</T></h5>
- <CommunityForm onCreate={this.handleCommunityCreate}/>
+ <h5>
+ <T i18nKey="create_community">#</T>
+ </h5>
+ <CommunityForm onCreate={this.handleCommunityCreate} />
</div>
</div>
</div>
- )
+ );
}
handleCommunityCreate(community: Community) {
this.props.history.push(`/c/${community.name}`);
}
}
-
-