X-Git-Url: http://these/git/?a=blobdiff_plain;f=src%2Fshared%2Fcomponents%2Fcommunity%2Fcommunity-form.tsx;h=e44675c91c608256aad56729ef91fb0de0f118cf;hb=9f2289d46600385354d3673b0ef2ba921a1fbe49;hp=6e2eba5ab702e59e18f319f9c8bc7bd5be854c75;hpb=32e1fa747e0f90c7a3f6fb5823a83d6489f0b821;p=lemmy-ui.git diff --git a/src/shared/components/community/community-form.tsx b/src/shared/components/community/community-form.tsx index 6e2eba5..e44675c 100644 --- a/src/shared/components/community/community-form.tsx +++ b/src/shared/components/community/community-form.tsx @@ -1,6 +1,7 @@ import { myAuthRequired } from "@utils/app"; import { capitalizeFirstLetter, randomStr } from "@utils/helpers"; import { Component, linkEvent } from "inferno"; +import { Prompt } from "inferno-router"; import { CommunityView, CreateCommunity, @@ -12,7 +13,6 @@ 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 @@ -90,7 +90,8 @@ export class CommunityForm extends Component< className="community-form" onSubmit={linkEvent(this, this.handleCreateCommunitySubmit)} > - @@ -329,7 +330,7 @@ export class CommunityForm extends Component< handleCommunityPostingRestrictedToMods(i: CommunityForm, event: any) { i.setState( - s => ((s.form.posting_restricted_to_mods = event.target.checked), s) + s => ((s.form.posting_restricted_to_mods = event.target.checked), s), ); }