diff --git a/backend/package.json b/backend/package.json index 18846ac2cfb5..69aa41970fde 100644 --- a/backend/package.json +++ b/backend/package.json @@ -81,7 +81,7 @@ "concurrently": "8.2.2", "openapi3-ts": "2.0.2", "oxlint": "1.57.0", - "oxlint-tsgolint": "0.17.3", + "oxlint-tsgolint": "0.18.1", "readline-sync": "1.4.10", "supertest": "7.1.4", "testcontainers": "11.11.0", diff --git a/frontend/package.json b/frontend/package.json index f21c61bc9744..c7708e197781 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -107,7 +107,7 @@ "magic-string": "0.30.17", "normalize.css": "8.0.1", "oxlint": "1.57.0", - "oxlint-tsgolint": "0.17.3", + "oxlint-tsgolint": "0.18.1", "postcss": "8.5.8", "sass": "1.70.0", "solid-devtools": "0.34.5", diff --git a/frontend/src/ts/components/modals/QuoteSearchModal.tsx b/frontend/src/ts/components/modals/QuoteSearchModal.tsx index 497792ed0165..5cbd83f36890 100644 --- a/frontend/src/ts/components/modals/QuoteSearchModal.tsx +++ b/frontend/src/ts/components/modals/QuoteSearchModal.tsx @@ -15,7 +15,7 @@ import { Config } from "../../config/store"; import { isCaptchaAvailable } from "../../controllers/captcha-controller"; import QuotesController, { Quote } from "../../controllers/quotes-controller"; import * as DB from "../../db"; -import { isAuthenticated } from "../../firebase"; +import { isLoggedIn } from "../../states/core"; import { hideLoaderBar, showLoaderBar } from "../../states/loader-bar"; import { hideModalAndClearChain, @@ -100,12 +100,12 @@ function getLengthDesc(quote: Quote): string { function Item(props: { quote: Quote; matchedTerms: string[]; - dataBalloonDirection: string; + isRtl: boolean; onSelect: () => void; onReport: () => void; onToggleFavorite: () => Promise; }): JSXElement { - const loggedOut = (): boolean => !isAuthenticated(); + const loggedOut = (): boolean => !isLoggedIn(); const [isFav, setIsFav] = createSignal( // oxlint-disable-next-line solid/reactivity -- intentionally reading once as initial value !loggedOut() && QuotesController.isQuoteFavorite(props.quote), @@ -169,7 +169,7 @@ function Item(props: { }} balloon={{ text: "Report quote", - position: props.dataBalloonDirection as "left" | "right", + position: props.isRtl ? "right" : "left", }} />