summaryrefslogtreecommitdiffstats
path: root/ui/src/components/communities.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-04-14 19:18:13 -0400
committerDessalines <tyhou13@gmx.com>2020-04-14 19:18:13 -0400
commitfcf1c65fc131478632525ce44a792f1578932f4a (patch)
treeb778be542d06aa374fd5eb9d36b40b2b7fb05536 /ui/src/components/communities.tsx
parent1336b4ed6023e7fcf0fd40be63569966ee4b1b45 (diff)
Front end federation names and links for users, posts, and communities.
Diffstat (limited to 'ui/src/components/communities.tsx')
-rw-r--r--ui/src/components/communities.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/src/components/communities.tsx b/ui/src/components/communities.tsx
index 8d130ae7..a3e340ff 100644
--- a/ui/src/components/communities.tsx
+++ b/ui/src/components/communities.tsx
@@ -14,6 +14,7 @@ import {
} from '../interfaces';
import { WebSocketService } from '../services';
import { wsJsonToRes, toast } from '../utils';
+import { CommunityLink } from './community-link';
import { i18n } from '../i18next';
declare const Sortable: any;
@@ -104,9 +105,7 @@ export class Communities extends Component<any, CommunitiesState> {
{this.state.communities.map(community => (
<tr>
<td>
- <Link to={`/c/${community.name}`}>
- {community.name}
- </Link>
+ <CommunityLink community={community} />
</td>
<td class="d-none d-lg-table-cell">{community.title}</td>
<td>{community.category_name}</td>