Skip to content

Commit

Permalink
testBackendURL on component creation. Change page titles for particip…
Browse files Browse the repository at this point in the history
…ants
  • Loading branch information
mohamedalichelbi committed Apr 5, 2024
1 parent 6d4c51a commit 9f8e5d2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>Scriptable ZK-Credentials</title>
</head>
<body>
<div id="root"></div>
Expand Down
1 change: 1 addition & 0 deletions src/pages/holder/holder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export function Holder() {
})
};

document.title = 'Holder'
return (
<>
<b>Holder Page</b>
Expand Down
1 change: 1 addition & 0 deletions src/pages/issuer/issuer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function Issuer() {
}
}

document.title = 'Issuer'
return(
<>
<b>Issuer Page</b>
Expand Down
4 changes: 3 additions & 1 deletion src/pages/root/root.tsx
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -19,6 +19,8 @@ export function Root() {
}
}

useEffect(() => { testBackendUrl() }, [])

return(
<Box
display="block"
Expand Down
1 change: 1 addition & 0 deletions src/pages/verifier/verifier.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export function Verifier() {
document.title = 'Verifier'
return(
<>Verifier Page</>
)
Expand Down

0 comments on commit 9f8e5d2

Please sign in to comment.