diff --git a/src/pages/digitalId/Verify.jsx b/src/pages/digitalId/Verify.jsx index 570cc64..1f5bb4b 100644 --- a/src/pages/digitalId/Verify.jsx +++ b/src/pages/digitalId/Verify.jsx @@ -1,83 +1,13 @@ import React, { useState } from 'react'; import Sidebar from '../../partials/Sidebar'; import Header from '../../partials/Header'; +import { sharedDataStore } from '../../store/sharedDataStore'; +import { observer } from 'mobx-react-lite'; -const Verify = (() => { +const Verify = observer(() => { const [sidebarOpen, setSidebarOpen] = useState(false); const [descriptionOpen, setDescriptionOpen] = useState(false); - const verifiedData = [ - { - "date": "31.05.2022 10:48", - "fields": [ - { - "name": "Residence", - "value": "United Kindom", - "hash1": "7234ABC3423423523457234ABC34234", - "hash2": "7234ABC3423423523457234ABC34234" - }, - { - "name": "Document ID", - "value": "A1321313", - "hash1": "7234ABC3423423523457234ABC34234", - "hash2": "7234ABC3423423523457234ABC34234" - }, - { - "name": 'Document ID', - "value": 'A3451313', - "hash1": '9584ABC3423423523457234ABC34234', - "hash2": '9584ABC3423423523457234ABC34234' - } - ] - }, - { - "date": "31.05.2022 10:48", - "fields": [ - { - "name": 'Residence', - "value": 'Holland', - "hash1": '1024ABC3423423523457234ABC34234', - "hash2": '1024ABC3423423523457234ABC34234' - }, - { - "name": 'Document ID', - "value": 'B3451313', - "hash1": '7893ABC3423423523457234ABC34234', - "hash2": '7893ABC3423423523457234ABC34234' - }, - { - "name": 'Document ID', - "value": 'A3451313', - "hash1": '7286ABC3423423523457234ABC34234', - "hash2": '7286ABC3423423523457234ABC34234' - }, - ] - }, - { - "date": "31.05.2022 10:48", - "fields": [ - { - "name": 'Residence', - "value": 'China', - "hash1": '0000ABC3423423523457234ABC34234', - "hash2": '0000ABC3423423523457234ABC34234' - }, - { - "name": 'Document ID', - "value": 'C3451313', - "hash1": '1230ABC3423423523457234ABC34234', - "hash2": '1230ABC3423423523457234ABC34234' - }, - { - "name": 'Document ID', - "value": 'D3451313', - "hash1": '4483ABC3423423523457234ABC34234', - "hash2": '4483ABC3423423523457234ABC34234' - }, - ] - } - ]; - return (