Skip to content

Commit

Permalink
Merge pull request #66 from osancus/dev
Browse files Browse the repository at this point in the history
issuer updates
  • Loading branch information
osancus authored Sep 4, 2020
2 parents aad7e94 + 7e589a2 commit f8e2e18
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
REACT_APP_API_SECRET=''
REACT_APP_SCHEMA_ID='GaugZJ4PXj9uvRp2wW1oi5:2:TNETPK_VAX_DEMO_02:0.1'
REACT_APP_SCHEMA_ID='GaugZJ4PXj9uvRp2wW1oi5:2:TNETPK_VAX_DEMO_04:0.1'
REACT_APP_ISSUER_HOST_URL=''
REACT_APP_PASSCODE='admin'
REACT_APP_CRED_ID='GaugZJ4PXj9uvRp2wW1oi5:3:CL:5753:vaxdemo03'
REACT_APP_CRED_ID='GaugZJ4PXj9uvRp2wW1oi5:3:CL:5760:vaxdemo05'
6 changes: 3 additions & 3 deletions src/components/ProofForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function ProofForm(props) {
dob,
nationality,
doctype,
docID,
doc_id,
vacName,
manufacturer,
batch,
Expand Down Expand Up @@ -78,11 +78,11 @@ export default function ProofForm(props) {
</Col>
</FormGroup> */}
<FormGroup row>
<Label for="docID" sm={4}>
<Label for="doc_id" sm={4}>
Travel Document
</Label>
<Col sm={10}>
<Input type="text" name="docID" id="docID" value={doctype + ': ' + docID} disabled />
<Input type="text" name="doc_id" id="doc_id" value={doctype + ': ' + doc_id} disabled />
</Col>
</FormGroup>

Expand Down
8 changes: 4 additions & 4 deletions src/components/VaccinationForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const VaccinationForm = () => {
const [dob, setDob] = useState('1990-02-21')
const [nationality, setNationality] = useState('Pakistani')
const [doctype, setDocType] = useState('Passport')
const [docID, setDocID] = useState('CV-' + randomString(8).toUpperCase())
const [doc_id, setDocID] = useState('CV-' + randomString(8).toUpperCase())

const [vacName, setVacName] = useState('SARS-CoV2')
const [manufacturer, setManufacturer] = useState('Moderna')
Expand All @@ -35,7 +35,7 @@ const VaccinationForm = () => {
dob === '' |
nationality === '' |
doctype === '' |
docID === '' | dose === '' | batch === '' | validTill === '' | vacName === '' |
doc_id === '' | dose === '' | batch === '' | validTill === '' | vacName === '' |
manufacturer === '' |
unit === '' |
nextBoosterDate === '' |
Expand Down Expand Up @@ -66,7 +66,7 @@ const VaccinationForm = () => {
dob: dob,
nationality: nationality,
doctype: doctype,
docID: docID,
doc_id: doc_id,
vacName: vacName,
manufacturer: manufacturer,
batch: batch,
Expand Down Expand Up @@ -142,7 +142,7 @@ const VaccinationForm = () => {
<Col md={4}>
<FormGroup>
<Label for="docid">Travel Document ID</Label>
<Input type="text" className="inputField rounded-pill" name="docid" id="docid" onChange={(e) => setDocID(e.target.value)} placeholder="CV123456789" value={docID} />
<Input type="text" className="inputField rounded-pill" name="docid" id="docid" onChange={(e) => setDocID(e.target.value)} placeholder="CV123456789" value={doc_id} />
</FormGroup>
</Col>
</Row>
Expand Down
6 changes: 3 additions & 3 deletions src/containers/QRContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function QRContainer(props) {
// },
// body: JSON.stringify({
// "support_revocation": false,
// "tag": props.location.state.data.docID,
// "tag": props.location.state.data.doc_id,
// "schema_id": `${GET_SCHEMA_ID()}`,
// })
// }).then(resp => resp.json().then((data => issueCredential(data.credential_definition_id))))
Expand Down Expand Up @@ -172,8 +172,8 @@ function QRContainer(props) {
"value": props.location.state.data.doctype
},
{
"name": "docID",
"value": props.location.state.data.docID
"name": "doc_id",
"value": props.location.state.data.doc_id
}
]
}
Expand Down

0 comments on commit f8e2e18

Please sign in to comment.