X-Git-Url: http://these/git/?a=blobdiff_plain;f=src%2Fshared%2Fcomponents%2Fcommunity%2Fcommunity-form.tsx;h=e44675c91c608256aad56729ef91fb0de0f118cf;hb=9f2289d46600385354d3673b0ef2ba921a1fbe49;hp=1d32f6f7660fbd0bf2c77c4bbaba133af6350b25;hpb=b076427e8dcd4d93fd56c1bb2cc005055e661216;p=lemmy-ui.git diff --git a/src/shared/components/community/community-form.tsx b/src/shared/components/community/community-form.tsx index 1d32f6f..e44675c 100644 --- a/src/shared/components/community/community-form.tsx +++ b/src/shared/components/community/community-form.tsx @@ -1,17 +1,18 @@ +import { myAuthRequired } from "@utils/app"; +import { capitalizeFirstLetter, randomStr } from "@utils/helpers"; import { Component, linkEvent } from "inferno"; +import { Prompt } from "inferno-router"; import { CommunityView, CreateCommunity, EditCommunity, Language, } from "lemmy-js-client"; -import { i18n } from "../../i18next"; -import { capitalizeFirstLetter, myAuthRequired, randomStr } from "../../utils"; +import { I18NextService } from "../../services"; import { Icon, Spinner } from "../common/icon"; import { ImageUploadForm } from "../common/image-upload-form"; import { LanguageSelect } from "../common/language-select"; import { MarkdownTextArea } from "../common/markdown-textarea"; -import NavigationPrompt from "../common/navigation-prompt"; interface CommunityFormProps { community_view?: CommunityView; // If a community is given, that means this is an edit @@ -21,7 +22,7 @@ interface CommunityFormProps { onCancel?(): any; onUpsertCommunity(form: CreateCommunity | EditCommunity): void; enableNsfw?: boolean; - isLoading?: boolean; + loading?: boolean; } interface CommunityFormState { @@ -85,10 +86,14 @@ export class CommunityForm extends Component< render() { return ( -