]> Untitled Git - lemmy-ui.git/blobdiff - src/shared/components/community-link.tsx
First pass at v2_api
[lemmy-ui.git] / src / shared / components / community-link.tsx
index 8bf73ca38e0d62211a4a3c02a1053b4ac6ab3eab..b8f3bc05ec2b963975bc03373b1448cd69298a73 100644 (file)
@@ -1,19 +1,12 @@
 import { Component } from 'inferno';
 import { Link } from 'inferno-router';
-import { Community } from 'lemmy-js-client';
+import { CommunitySafe } from 'lemmy-js-client';
 import { hostname, showAvatars } from '../utils';
 import { PictrsImage } from './pictrs-image';
 
-interface CommunityOther {
-  name: string;
-  id?: number; // Necessary if its federated
-  icon?: string;
-  local?: boolean;
-  actor_id?: string;
-}
-
 interface CommunityLinkProps {
-  community: Community | CommunityOther;
+  // TODO figure this out better
+  community: CommunitySafe;
   realLink?: boolean;
   useApubName?: boolean;
   muted?: boolean;