From: SleeplessOne1917 Date: Tue, 13 Jun 2023 10:33:27 +0000 (+0000) Subject: Fix prompt component (#1223) X-Git-Url: http://these/git/readmes/%24%7B%60data:application/static/%7B?a=commitdiff_plain;h=5f5ef404d261b0c17359b716723ce15fcd871a43;p=lemmy-ui.git Fix prompt component (#1223) Co-authored-by: Dessalines --- diff --git a/src/shared/components/app/app.tsx b/src/shared/components/app/app.tsx index 9e6e9bd..96857f3 100644 --- a/src/shared/components/app/app.tsx +++ b/src/shared/components/app/app.tsx @@ -1,8 +1,8 @@ import { Component } from "inferno"; import { Provider } from "inferno-i18next-dess"; import { Route, Switch } from "inferno-router"; -import { IsoDataOptionalSite } from "shared/interfaces"; import { i18n } from "../../i18next"; +import { IsoDataOptionalSite } from "../../interfaces"; import { routes } from "../../routes"; import { isAuthPath, setIsoData } from "../../utils"; import AuthGuard from "../common/auth-guard"; diff --git a/src/shared/components/comment/comment-form.tsx b/src/shared/components/comment/comment-form.tsx index 4100397..42ed226 100644 --- a/src/shared/components/comment/comment-form.tsx +++ b/src/shared/components/comment/comment-form.tsx @@ -11,8 +11,8 @@ import { wsUserOp, } from "lemmy-js-client"; import { Subscription } from "rxjs"; -import { CommentNodeI } from "shared/interfaces"; import { i18n } from "../../i18next"; +import { CommentNodeI } from "../../interfaces"; import { UserService, WebSocketService } from "../../services"; import { capitalizeFirstLetter, diff --git a/src/shared/components/common/markdown-textarea.tsx b/src/shared/components/common/markdown-textarea.tsx index 38a2c2e..92b8e2b 100644 --- a/src/shared/components/common/markdown-textarea.tsx +++ b/src/shared/components/common/markdown-textarea.tsx @@ -1,7 +1,6 @@ import autosize from "autosize"; import { NoOptionI18nKeys } from "i18next"; import { Component, linkEvent } from "inferno"; -import { Prompt } from "inferno-router"; import { Language } from "lemmy-js-client"; import { i18n } from "../../i18next"; import { UserService } from "../../services"; @@ -25,6 +24,7 @@ import { import { EmojiPicker } from "./emoji-picker"; import { Icon, Spinner } from "./icon"; import { LanguageSelect } from "./language-select"; +import NavigationPrompt from "./navigation-prompt"; import ProgressBar from "./progress-bar"; interface MarkdownTextAreaProps { @@ -136,10 +136,7 @@ export class MarkdownTextArea extends Component< return (
- +