From eadc98fbbe0fb3ba3f8d67b3b1f3468cf1224222 Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Sun, 9 Jun 2024 10:41:06 -0400 Subject: [PATCH] fix build errors --- components/Announcement.tsx | 1 + components/InstallApp.tsx | 1 + components/ModalContent/NewUserModal.tsx | 5 ++++- pages/auth/verify-email.tsx | 2 +- pages/register.tsx | 2 ++ pages/subscribe.tsx | 5 ++--- public/locales/en/common.json | 2 +- 7 files changed, 12 insertions(+), 6 deletions(-) diff --git a/components/Announcement.tsx b/components/Announcement.tsx index 3186833..2f97297 100644 --- a/components/Announcement.tsx +++ b/components/Announcement.tsx @@ -22,6 +22,7 @@ export default function Announcement({ toggleAnnouncementBar }: Props) { href={`https://blog.linkwarden.app/releases/${announcementId}`} target="_blank" className="underline" + key={0} />, ]} /> diff --git a/components/InstallApp.tsx b/components/InstallApp.tsx index 6fa4a61..4b70309 100644 --- a/components/InstallApp.tsx +++ b/components/InstallApp.tsx @@ -33,6 +33,7 @@ const InstallApp = (props: Props) => { className="underline" target="_blank" href="https://docs.linkwarden.app/getting-started/pwa-installation" + key={0} />, ]} /> diff --git a/components/ModalContent/NewUserModal.tsx b/components/ModalContent/NewUserModal.tsx index c0f2899..d83ef40 100644 --- a/components/ModalContent/NewUserModal.tsx +++ b/components/ModalContent/NewUserModal.tsx @@ -127,7 +127,10 @@ export default function NewUserModal({ onClose }: Props) {
- ]} /> + ]} + />
diff --git a/pages/auth/verify-email.tsx b/pages/auth/verify-email.tsx index 7b8e3b1..0a4d298 100644 --- a/pages/auth/verify-email.tsx +++ b/pages/auth/verify-email.tsx @@ -7,9 +7,9 @@ import { useTranslation } from "next-i18next"; const VerifyEmail = () => { const router = useRouter(); + const { t } = useTranslation(); useEffect(() => { - const { t } = useTranslation(); const token = router.query.token; if (!token || typeof token !== "string") { diff --git a/pages/register.tsx b/pages/register.tsx index af5476d..4eba2bc 100644 --- a/pages/register.tsx +++ b/pages/register.tsx @@ -258,11 +258,13 @@ export default function Register({ href="https://linkwarden.app/tos" className="font-semibold" data-testid="terms-of-service-link" + key={0} />, , ]} /> diff --git a/pages/subscribe.tsx b/pages/subscribe.tsx index 2b76b7a..591863e 100644 --- a/pages/subscribe.tsx +++ b/pages/subscribe.tsx @@ -63,9 +63,8 @@ export default function Subscribe() { - support@linkwarden.app - , + key={0} + />, ]} />

diff --git a/public/locales/en/common.json b/public/locales/en/common.json index ee55d41..7b6dd57 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -76,7 +76,7 @@ "nothing_found": "Nothing found.", "redirecting_to_stripe": "Redirecting to Stripe...", "subscribe_title": "Subscribe to Linkwarden!", - "subscribe_desc": "You will be redirected to Stripe, feel free to reach out to us at <0/> in case of any issue.", + "subscribe_desc": "You will be redirected to Stripe, feel free to reach out to us at <0>support@linkwarden.app in case of any issue.", "monthly": "Monthly", "yearly": "Yearly", "discount_percent": "{{percent}}% Off",