From 8cd45b64a170eb7093e88de23951106cd8822f66 Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Tue, 17 May 2022 18:27:50 -0400 Subject: [PATCH] Fix links The href attribute was never actually being set. --- src/auth/useInteractiveRegistration.js | 5 ++++- src/typography/Typography.jsx | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/auth/useInteractiveRegistration.js b/src/auth/useInteractiveRegistration.js index 8e6fbb8..8945d0e 100644 --- a/src/auth/useInteractiveRegistration.js +++ b/src/auth/useInteractiveRegistration.js @@ -19,7 +19,10 @@ import { useState, useEffect, useCallback, useRef } from "react"; import { initClient, defaultHomeserver } from "../matrix-utils"; export function useInteractiveRegistration() { - const [state, setState] = useState({ privacyPolicyUrl: "#", loading: false }); + const [state, setState] = useState({ + privacyPolicyUrl: null, + loading: false, + }); const authClientRef = useRef(); diff --git a/src/typography/Typography.jsx b/src/typography/Typography.jsx index 48bf8ea..5ec066a 100644 --- a/src/typography/Typography.jsx +++ b/src/typography/Typography.jsx @@ -209,6 +209,7 @@ export const Link = forwardRef( if (href) { externalLinkProps = { + href, target: "_blank", rel: "noreferrer noopener", };