summaryrefslogtreecommitdiffstats
path: root/ui/src/components/create-community.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-04-25 14:52:18 -0700
committerDessalines <tyhou13@gmx.com>2019-04-25 14:52:18 -0700
commite4532aa1cb19decb5f57fca13ca20aae3e1e0a1e (patch)
tree8e053b3843acddfa3c36b593e3239d0fd6e38e73 /ui/src/components/create-community.tsx
parentfdc5a23f2ac2d166a11fe2eb0670c97a16122835 (diff)
Adding /f/ and /u/ in links now.
- Fixes #102
Diffstat (limited to 'ui/src/components/create-community.tsx')
-rw-r--r--ui/src/components/create-community.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/src/components/create-community.tsx b/ui/src/components/create-community.tsx
index fb264ab2..04ef6d3b 100644
--- a/ui/src/components/create-community.tsx
+++ b/ui/src/components/create-community.tsx
@@ -1,5 +1,6 @@
import { Component } from 'inferno';
import { CommunityForm } from './community-form';
+import { Community } from '../interfaces';
export class CreateCommunity extends Component<any, any> {
@@ -25,8 +26,8 @@ export class CreateCommunity extends Component<any, any> {
)
}
- handleCommunityCreate(id: number) {
- this.props.history.push(`/community/${id}`);
+ handleCommunityCreate(community: Community) {
+ this.props.history.push(`/f/${community.name}`);
}
}