From: Alec Armbruster Date: Wed, 14 Jun 2023 13:39:19 +0000 (-0400) Subject: update prop name X-Git-Url: http://these/git/%7BsupportLemmyUrl%7D?a=commitdiff_plain;h=cd9de0b2e0964e5279c03d6e2e5383ba6f07d35a;p=lemmy-ui.git update prop name --- diff --git a/src/shared/components/community/community-form.tsx b/src/shared/components/community/community-form.tsx index 1d32f6f..4eed464 100644 --- a/src/shared/components/community/community-form.tsx +++ b/src/shared/components/community/community-form.tsx @@ -21,7 +21,7 @@ interface CommunityFormProps { onCancel?(): any; onUpsertCommunity(form: CreateCommunity | EditCommunity): void; enableNsfw?: boolean; - isLoading?: boolean; + loading?: boolean; } interface CommunityFormState { @@ -88,7 +88,7 @@ export class CommunityForm extends Component<
- {this.props.isLoading ? ( + {this.props.loading ? ( ) : this.props.community_view ? ( capitalizeFirstLetter(i18n.t("save")) diff --git a/src/shared/components/community/create-community.tsx b/src/shared/components/community/create-community.tsx index ecadd3a..ff31b83 100644 --- a/src/shared/components/community/create-community.tsx +++ b/src/shared/components/community/create-community.tsx @@ -47,7 +47,7 @@ export class CreateCommunity extends Component { allLanguages={this.state.siteRes.all_languages} siteLanguages={this.state.siteRes.discussion_languages} communityLanguages={this.state.siteRes.discussion_languages} - isLoading={this.state.loading} + loading={this.state.loading} />