diff options
author | Dessalines <tyhou13@gmx.com> | 2019-04-25 14:52:18 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-04-25 14:52:18 -0700 |
commit | e4532aa1cb19decb5f57fca13ca20aae3e1e0a1e (patch) | |
tree | 8e053b3843acddfa3c36b593e3239d0fd6e38e73 /ui/src/components/community-form.tsx | |
parent | fdc5a23f2ac2d166a11fe2eb0670c97a16122835 (diff) |
Adding /f/ and /u/ in links now.
- Fixes #102
Diffstat (limited to 'ui/src/components/community-form.tsx')
-rw-r--r-- | ui/src/components/community-form.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/src/components/community-form.tsx b/ui/src/components/community-form.tsx index 2d5aa3e7..66071a3f 100644 --- a/ui/src/components/community-form.tsx +++ b/ui/src/components/community-form.tsx @@ -11,7 +11,7 @@ import { Community } from '../interfaces'; interface CommunityFormProps { community?: Community; // If a community is given, that means this is an edit onCancel?(): any; - onCreate?(id: number): any; + onCreate?(community: Community): any; onEdit?(community: Community): any; } @@ -167,7 +167,7 @@ export class CommunityForm extends Component<CommunityFormProps, CommunityFormSt } else if (op == UserOperation.CreateCommunity) { let res: CommunityResponse = msg; this.state.loading = false; - this.props.onCreate(res.community.id); + this.props.onCreate(res.community); } // TODO is this necessary? |