From 9f8e5d204c14c170d61c0158a24db8fd50411c81 Mon Sep 17 00:00:00 2001 From: mohamedalichelbi Date: Fri, 5 Apr 2024 15:51:22 +0200 Subject: [PATCH] testBackendURL on component creation. Change page titles for participants --- index.html | 2 +- src/pages/holder/holder.tsx | 1 + src/pages/issuer/issuer.tsx | 1 + src/pages/root/root.tsx | 4 +++- src/pages/verifier/verifier.tsx | 1 + 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e4b78ea..627f4ab 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - Vite + React + TS + Scriptable ZK-Credentials
diff --git a/src/pages/holder/holder.tsx b/src/pages/holder/holder.tsx index 6a64dfe..8aacbce 100644 --- a/src/pages/holder/holder.tsx +++ b/src/pages/holder/holder.tsx @@ -63,6 +63,7 @@ export function Holder() { }) }; + document.title = 'Holder' return ( <> Holder Page diff --git a/src/pages/issuer/issuer.tsx b/src/pages/issuer/issuer.tsx index 248c9f2..f553626 100644 --- a/src/pages/issuer/issuer.tsx +++ b/src/pages/issuer/issuer.tsx @@ -27,6 +27,7 @@ export function Issuer() { } } + document.title = 'Issuer' return( <> Issuer Page diff --git a/src/pages/root/root.tsx b/src/pages/root/root.tsx index 1b9b0d3..f007dd9 100644 --- a/src/pages/root/root.tsx +++ b/src/pages/root/root.tsx @@ -1,4 +1,4 @@ -import { useState } from "react" +import { useState, useEffect } from "react" import { TextField, Button, Box } from "@mui/material" import { useNavigate } from "react-router-dom" import { setBackendUrl, getBackendUrl, sayHello } from "../../utils" @@ -19,6 +19,8 @@ export function Root() { } } + useEffect(() => { testBackendUrl() }, []) + return( Verifier Page )