From 9ba224b2306dee050d4c7aeb2f6ee138ef84cddd Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 21 Jun 2024 08:41:10 -0400 Subject: [PATCH] Adding a rate limit info message. - Fixes #1920 --- src/shared/components/home/rate-limit-form.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/shared/components/home/rate-limit-form.tsx b/src/shared/components/home/rate-limit-form.tsx index 21b3364b..bef1440a 100644 --- a/src/shared/components/home/rate-limit-form.tsx +++ b/src/shared/components/home/rate-limit-form.tsx @@ -3,7 +3,7 @@ import classNames from "classnames"; import { Component, FormEventHandler, linkEvent } from "inferno"; import { EditSite, LocalSiteRateLimit } from "lemmy-js-client"; import { I18NextService } from "../../services"; -import { Spinner } from "../common/icon"; +import { Icon, Spinner } from "../common/icon"; import Tabs from "../common/tabs"; const rateLimitTypes = [ @@ -144,6 +144,10 @@ export default class RateLimitsForm extends Component<

{I18NextService.i18n.t("rate_limit_header")}

+
+ + {I18NextService.i18n.t("rate_limit_info")} +
({ key: rateLimitType,