diff options
author | Dessalines <tyhou13@gmx.com> | 2019-10-18 17:20:27 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-10-18 17:20:27 -0700 |
commit | 4e5561283392d2ab1545cabb4455a8ffc490f86b (patch) | |
tree | a4ee9cc096826dc32faf3675212c7f95f1b3ea5e /ui/src/components/create-community.tsx | |
parent | 82ea5ae9186e5a8e631c87a61077e16713eb87a4 (diff) |
Running prettier on code.
- #305 , #309
Diffstat (limited to 'ui/src/components/create-community.tsx')
-rw-r--r-- | ui/src/components/create-community.tsx | 15 |
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}`); } } - - |