import React, { useState } from 'react'; import Sidebar from '../../partials/Sidebar'; import Header from '../../partials/Header'; function Verify () { const [sidebarOpen, setSidebarOpen] = useState(false); const [descriptionOpen, setDescriptionOpen] = useState(false); const verifiedData = [ { id: 0, time: '10:48', property: 'Residence', value: 'United Kindom', validatedData: '7234ABC3423423523457234ABC34234' }, { id: 1, time: '10:48', property: 'Document ID', value: 'A1321313', validatedData: '4568ABC3423423523457234ABC34234' }, { id: 2, time: '10:48', property: 'Document ID', value: 'A3451313', validatedData: '9584ABC3423423523457234ABC34234' }, { id: 3, time: '03:00', property: 'Residence', value: 'Holland', validatedData: '1024ABC3423423523457234ABC34234' }, { id: 4, time: '03:00', property: 'Document ID', value: 'B3451313', validatedData: '7893ABC3423423523457234ABC34234' }, { id: 5, time: '03:00', property: 'Document ID', value: 'A3451313', validatedData: '7286ABC3423423523457234ABC34234' }, { id: 6, time: '10:00', property: 'Residence', value: 'China', validatedData: '0000ABC3423423523457234ABC34234' }, { id: 7, time: '10:00', property: 'Document ID', value: 'C3451313', validatedData: '1230ABC3423423523457234ABC34234' }, { id: 8, time: '10:00', property: 'Document ID', value: 'D3451313', validatedData: '4483ABC3423423523457234ABC34234' } ] return (
{/* Sidebar */} {/* Content area */}
{/* Site header */}
{/* Page header */}
{/* Blocks */} {verifiedData.sort((first, second) => { if (first.time < second.time) { return -1; } if (first.time > second.time) { return 1; } if (first.time === second.time) { return 0; } })}
{/* Header */}
Yesterday at 10:48 AM {/* Buttons */}
United Kindom 7234ABC3423423523457234ABC34234 7234ABC3423423523457234ABC34234
Residence
) } export default Verify;