diff --git a/frontend/substrate-front-end-template/src/About.js b/frontend/substrate-front-end-template/src/About.js index f5ade33..1c457e9 100644 --- a/frontend/substrate-front-end-template/src/About.js +++ b/frontend/substrate-front-end-template/src/About.js @@ -1,7 +1,9 @@ import React from 'react' -import { Container, Segment, Header } from 'semantic-ui-react' +import { useNavigate } from "react-router-dom"; +import { Container, Segment, Header, Button, Icon } from 'semantic-ui-react' export default function About(props) { + const navigate = useNavigate(); return ( @@ -15,10 +17,16 @@ export default function About(props) {

All audit reports are bound to the audited project packages themselves and results are verifiable and transparent. Audit reports can be challenged, so the better hackers can steal the reputation of others.

Request audit

Get QRD and request an automated audit, tools will run automatically. And someone might even do a free test audit for you in this beta instance, just for fun.

- +
Become an auditor

Right now, in this test instance, anyone can "hack" him/herself to become an auditor. In the live system we'll add those who already proved their skills through CTF games, eg. CCTF.

- +
Become council member

Council members overview the audit challenges and help the QDAO system to be fair play. Become a council member by hacking the beta system or asking on matrix.

diff --git a/frontend/substrate-front-end-template/src/CouncilPage.js b/frontend/substrate-front-end-template/src/CouncilPage.js index 8d2208c..b51cb1f 100644 --- a/frontend/substrate-front-end-template/src/CouncilPage.js +++ b/frontend/substrate-front-end-template/src/CouncilPage.js @@ -29,7 +29,14 @@ export default function CouncilPage(props) { return (
{isCouncil === false && -
You are not yet member of the council.
+
+

You are not member of the council yet.

+

+ + How to become a council member? + +

+
} {isCouncil && (
diff --git a/frontend/substrate-front-end-template/src/RequestAudit.js b/frontend/substrate-front-end-template/src/RequestAudit.js index 97fbaec..3168348 100644 --- a/frontend/substrate-front-end-template/src/RequestAudit.js +++ b/frontend/substrate-front-end-template/src/RequestAudit.js @@ -5,7 +5,7 @@ import { useSubstrateState } from './substrate-lib' import useTxAndPost from './hooks/useTxAndPost' import useFormValidation from './hooks/useFormValidation' -const DEFAULT_STAKE = 500 +export const DEFAULT_STAKE = 500 export default function RequestAudit(props) { const [formState, setFormState] = useState({ url: '', hash: '', bounty: DEFAULT_STAKE, minAuditorScore: DEFAULT_STAKE }) diff --git a/frontend/substrate-front-end-template/src/Requestor.js b/frontend/substrate-front-end-template/src/Requestor.js index ebb68b9..663bd27 100644 --- a/frontend/substrate-front-end-template/src/Requestor.js +++ b/frontend/substrate-front-end-template/src/Requestor.js @@ -1,7 +1,8 @@ import React, { useState, useEffect, useRef } from 'react' import { Grid, Segment, Header } from 'semantic-ui-react' import { useSubstrateState } from './substrate-lib' -import RequestAudit from './RequestAudit' +import { BalanceAnnotation } from './AccountSelector' +import RequestAudit, { DEFAULT_STAKE } from './RequestAudit' import AuditList from './AuditList' export default function Requestor(props) { @@ -49,6 +50,14 @@ export default function Requestor(props) { return ( + +

The minimum stake for requesting an audit is {DEFAULT_STAKE} QRD. +

+ Your current balance is: +

+ How to get QRD? +

+
{(myAudits.length > 0) &&
My requests