From: Jay Sitter Date: Sat, 17 Jun 2023 02:24:32 +0000 (-0400) Subject: fix: Fix missing prop X-Git-Url: http://these/git/%22https:/nerdica.net/static/%22%7B%7D/%24%7Bargs.thread.url%7D?a=commitdiff_plain;h=d951fb57dab3e8e763f93ea4326d6fc4a4bd9e98;p=lemmy-ui.git fix: Fix missing prop --- diff --git a/src/shared/components/common/badges.tsx b/src/shared/components/common/badges.tsx index 858b986..49c0888 100644 --- a/src/shared/components/common/badges.tsx +++ b/src/shared/components/common/badges.tsx @@ -1,7 +1,7 @@ import { Link } from "inferno-router"; import { CommunityAggregates, - CommunityView, + CommunityId, SiteAggregates, } from "lemmy-js-client"; import { i18n } from "../../i18next"; @@ -9,7 +9,7 @@ import { numToSI } from "../../utils"; interface BadgesProps { counts: CommunityAggregates | SiteAggregates; - community_view: CommunityView; + communityId?: CommunityId; } const isCommunityAggregates = ( @@ -24,7 +24,7 @@ const isSiteAggregates = ( return "communities" in counts; }; -export const Badges = ({ counts, community_view }: BadgesProps) => { +export const Badges = ({ counts, communityId }: BadgesProps) => { return (