fix build errors

This commit is contained in:
daniel31x13 2024-06-09 10:41:06 -04:00
parent 8505667f73
commit eadc98fbbe
7 changed files with 12 additions and 6 deletions

View File

@ -22,6 +22,7 @@ export default function Announcement({ toggleAnnouncementBar }: Props) {
href={`https://blog.linkwarden.app/releases/${announcementId}`}
target="_blank"
className="underline"
key={0}
/>,
]}
/>

View File

@ -33,6 +33,7 @@ const InstallApp = (props: Props) => {
className="underline"
target="_blank"
href="https://docs.linkwarden.app/getting-started/pwa-installation"
key={0}
/>,
]}
/>

View File

@ -127,7 +127,10 @@ export default function NewUserModal({ onClose }: Props) {
<div role="note" className="alert alert-note mt-5">
<i className="bi-exclamation-triangle text-xl" />
<span>
<Trans i18nKey="password_change_note" components={[<b />]} />
<Trans
i18nKey="password_change_note"
components={[<b key={0} />]}
/>
</span>
</div>

View File

@ -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") {

View File

@ -258,11 +258,13 @@ export default function Register({
href="https://linkwarden.app/tos"
className="font-semibold"
data-testid="terms-of-service-link"
key={0}
/>,
<Link
href="https://linkwarden.app/privacy-policy"
className="font-semibold"
data-testid="privacy-policy-link"
key={1}
/>,
]}
/>

View File

@ -63,9 +63,8 @@ export default function Subscribe() {
<a
className="font-semibold"
href="mailto:support@linkwarden.app"
>
support@linkwarden.app
</a>,
key={0}
/>,
]}
/>
</p>

View File

@ -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</0> in case of any issue.",
"monthly": "Monthly",
"yearly": "Yearly",
"discount_percent": "{{percent}}% Off",