Merge pull request #336 from robintown/fix-links

Fix links
This commit is contained in:
Robin 2022-05-18 08:45:33 -04:00 committed by GitHub
commit 183eea9f24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -19,7 +19,10 @@ import { useState, useEffect, useCallback, useRef } from "react";
import { initClient, defaultHomeserver } from "../matrix-utils"; import { initClient, defaultHomeserver } from "../matrix-utils";
export function useInteractiveRegistration() { export function useInteractiveRegistration() {
const [state, setState] = useState({ privacyPolicyUrl: "#", loading: false }); const [state, setState] = useState({
privacyPolicyUrl: null,
loading: false,
});
const authClientRef = useRef(); const authClientRef = useRef();

View file

@ -209,6 +209,7 @@ export const Link = forwardRef(
if (href) { if (href) {
externalLinkProps = { externalLinkProps = {
href,
target: "_blank", target: "_blank",
rel: "noreferrer noopener", rel: "noreferrer noopener",
}; };