Add page Validate and update ValidationLog

This commit is contained in:
DwCay
2022-05-26 20:04:24 +03:00
parent 13839cf67c
commit df6419bfff
11 changed files with 606 additions and 217 deletions

View File

@@ -1,5 +1,6 @@
import React, {useEffect, useState} from 'react';
import React, { useState} from 'react';
import ValidateRoadMap from "../../partials/validationlog/ValidateRoadMap";
import Sidebar from '../../partials/Sidebar';
import Header from '../../partials/Header';
import User05 from "../../images/user-28-05.jpg";
@@ -9,16 +10,98 @@ import User06 from "../../images/user-28-06.jpg";
import User03 from "../../images/user-28-03.jpg";
import User01 from "../../images/user-28-01.jpg";
import {TransactionID} from "../../utils/TransactionID";
import {Link} from "react-router-dom";
function ValidationLog () {
const [sidebarOpen, setSidebarOpen] = useState(false);
const [transId, setTransId] = useState()
useEffect(()=>{
setTransId(TransactionID())
},[])
const logItems = [
{
id: '20',
name: 'Today',
transid: TransactionID(),
usersImges: [
{
img: User06,
imgId: "249"
},
{
img: User08,
imgId: "212"
},
{
img: User09,
imgId: "217"
},
{
img: User05,
imgId: "276"
},
],
items: [
{
seasonId: TransactionID(),
id: '434',
trunsText: 'Second name',
checked: true
},
{
seasonId: TransactionID(),
id: '476',
trunsText: 'First name by',
checked: true
},
{
seasonId: TransactionID(),
id: '422',
trunsText: 'Document name by',
checked: true
},
]
},
{
id: '30',
name: 'Last Week',
transid: TransactionID(),
usersImges: [
{
img: User06,
imgId: "145"
},
{
img: User08,
imgId: "182"
},
{
img: User09,
imgId: "154"
},
{
img: User05,
imgId: "114"
},
],
items: [
{
seasonId: TransactionID(),
id: '654',
trunsText: 'Gender name by',
checked: true
},
{
seasonId: TransactionID(),
id: '617',
trunsText: 'Second name Updated',
checked: false
},
{
seasonId: TransactionID(),
id: '643',
trunsText: 'Gender name by',
checked: true
},
]
},
]
return (
<div className="flex h-screen overflow-hidden">
@@ -41,206 +124,10 @@ function ValidationLog () {
{/*Psosts*/}
<div className="max-w-3xl m-auto mt-8">
<div className="xl:-translate-x-16 max-w-fit">
{/* Post */}
<article className="pt-6">
<div className="xl:flex">
<div className="w-32 shrink-0">
<h2 className="text-xl leading-snug font-bold text-slate-800 xl:leading-7 mb-4 xl:mb-0">Today</h2>
</div>
<div className="grow pb-6 border-b border-slate-200">
<header>
<div className="flex flex-nowrap items-center space-x-2 mb-6">
{/* Avatars */}
<div className="flex shrink-0 -space-x-3 -ml-px">
<a className="block" href="#0">
<img className="rounded-full border-2 border-white box-content" src={User05} width="28" height="28" alt="User 05" />
</a>
<a className="block" href="#0">
<img className="rounded-full border-2 border-white box-content" src={User08} width="28" height="28" alt="User 08" />
</a>
<a className="block" href="#0">
<img className="rounded-full border-2 border-white box-content" src={User09} width="28" height="28" alt="User 09" />
</a>
<a className="block" href="#0">
<img className="rounded-full border-2 border-white box-content" src={User06} width="28" height="28" alt="User 06" />
</a>
</div>
<div className="text-slate-400">·</div>
</div>
</header>
{/* List */}
<ul className="-my-2">
{/* List item */}
<li className="relative py-2">
<div className="flex items-center mb-2.5">
<div className="absolute left-0 h-full w-0.5 bg-slate-200 self-start ml-2.5 -translate-x-1/2 translate-y-3" aria-hidden="true"></div>
<div className="absolute left-0 rounded-full bg-indigo-500" aria-hidden="true">
<svg className="w-5 h-5 fill-current text-white" viewBox="0 0 20 20">
<path d="M14.4 8.4L13 7l-4 4-2-2-1.4 1.4L9 13.8z" />
</svg>
</div>
<h3 className="text-lg font-bold text-slate-800 pl-9">
Second name by <Link className="font-bold text-indigo-500 hover:text-indigo-600 underline hover:no-underline" to="/digitalId/validation-log">{`0x${transId}`}</Link>
</h3>
</div>
<div className="block text-slate-800 w-fit pl-9">
<div className="text-base font-semibold underline mb-[-10px]">{`0x${transId}`}</div>
<span className="font-normal text-[10px]">Transactions ID</span>
</div>
<div className="mb-3.5 block text-slate-800 w-fit pl-9">
<div className="text-base font-semibold underline mb-[-10px]">{transId}</div>
<span className="font-normal text-[10px]">Validated data</span>
</div>
<Link className="pl-9 font-normal text-sm text-indigo-500 hover:text-indigo-600" to="/digitalId/validation-log">Explore -&gt;</Link>
</li>
{/* List item */}
<li className="relative py-2">
<div className="flex items-center mb-1">
<div className="absolute left-0 h-full w-0.5 bg-slate-200 self-start ml-2.5 -translate-x-1/2 translate-y-3" aria-hidden="true"></div>
<div className="absolute left-0 rounded-full bg-indigo-500" aria-hidden="true">
<svg className="w-5 h-5 fill-current text-white" viewBox="0 0 20 20">
<path d="M14.4 8.4L13 7l-4 4-2-2-1.4 1.4L9 13.8z" />
</svg>
</div>
<h3 className="text-lg font-bold text-slate-800 pl-9">
First name by <Link className="font-bold text-indigo-500 hover:text-indigo-600 underline hover:no-underline" to="/digitalId/validation-log">{`0x${transId}`}</Link>
</h3>
</div>
<div className="block text-slate-800 w-fit pl-9">
<div className="text-base font-semibold underline mb-[-10px]">{`0x${transId}`}</div>
<span className="font-normal text-[10px]">Transactions ID</span>
</div>
<div className="mb-3.5 block text-slate-800 w-fit pl-9">
<div className="text-base font-semibold underline mb-[-10px]">{transId}</div>
<span className="font-normal text-[10px]">Validated data</span>
</div>
<Link className="pl-9 font-normal text-sm text-indigo-500 hover:text-indigo-600" to="/digitalId/validation-log">Explore -&gt;</Link>
</li>
{/* List item */}
<li className="relative py-2">
<div className="flex items-center mb-1">
<div className="absolute left-0 rounded-full bg-indigo-500" aria-hidden="true">
<svg className="w-5 h-5 fill-current text-white" viewBox="0 0 20 20">
<path d="M14.4 8.4L13 7l-4 4-2-2-1.4 1.4L9 13.8z" />
</svg>
</div>
<h3 className="text-lg font-bold text-slate-800 pl-9">
Document name by <Link className="font-bold text-indigo-500 hover:text-indigo-600 underline hover:no-underline" to="/digitalId/validation-log">{`0x${transId}`}</Link>
</h3>
</div>
<div className="block text-slate-800 w-fit pl-9">
<div className="text-base font-semibold underline mb-[-10px]">{`0x${transId}`}</div>
<span className="font-normal text-[10px]">Transactions ID</span>
</div>
<div className="mb-3.5 block text-slate-800 w-fit pl-9">
<div className="text-base font-semibold underline mb-[-10px]">{transId}</div>
<span className="font-normal text-[10px]">Validated data</span>
</div>
<Link className="pl-9 font-normal text-sm text-indigo-500 hover:text-indigo-600" to="/digitalId/validation-log">Explore -&gt;</Link>
</li>
</ul>
</div>
</div>
</article>
{/* Post */}
<article className="pt-6">
<div className="xl:flex">
<div className="w-32 shrink-0">
<h2 className="text-xl leading-snug font-bold text-slate-800 xl:leading-7 mb-4 xl:mb-0">Last week</h2>
</div>
<div className="grow pb-6 border-b border-slate-200">
<header>
<div className="flex flex-nowrap items-center space-x-2 mb-6">
{/* Avatars */}
<div className="flex shrink-0 -space-x-3 -ml-px">
<a className="block" href="#0">
<img className="rounded-full border-2 border-white box-content" src={User05} width="28" height="28" alt="User 05" />
</a>
<a className="block" href="#0">
<img className="rounded-full border-2 border-white box-content" src={User08} width="28" height="28" alt="User 08" />
</a>
<a className="block" href="#0">
<img className="rounded-full border-2 border-white box-content" src={User09} width="28" height="28" alt="User 09" />
</a>
<a className="block" href="#0">
<img className="rounded-full border-2 border-white box-content" src={User06} width="28" height="28" alt="User 06" />
</a>
</div>
<div className="text-slate-400">·</div>
</div>
</header>
{/* List */}
<ul className="-my-2">
{/* List item */}
<li className="relative py-2">
<div className="flex items-center mb-1">
<div className="absolute left-0 h-full w-0.5 bg-slate-200 self-start ml-2.5 -translate-x-1/2 translate-y-3" aria-hidden="true"></div>
<div className="absolute left-0 rounded-full bg-indigo-500" aria-hidden="true">
<svg className="w-5 h-5 fill-current text-white" viewBox="0 0 20 20">
<path d="M14.4 8.4L13 7l-4 4-2-2-1.4 1.4L9 13.8z" />
</svg>
</div>
<h3 className="text-lg font-bold text-slate-800 pl-9">
Gender name by <Link className="font-bold text-indigo-500 hover:text-indigo-600 underline hover:no-underline" to="/digitalId/validation-log">{`0x${transId}`}</Link>
</h3>
</div>
<div className="block text-slate-800 w-fit pl-9">
<div className="text-base font-semibold underline mb-[-10px]">{`0x${transId}`}</div>
<span className="font-normal text-[10px]">Transactions ID</span>
</div>
<div className="mb-3.5 block text-slate-800 w-fit pl-9">
<div className="text-base font-semibold underline mb-[-10px]">{transId}</div>
<span className="font-normal text-[10px]">Validated data</span>
</div>
<Link className="pl-9 font-normal text-sm text-indigo-500 hover:text-indigo-600" to="/digitalId/validation-log">Explore -&gt;</Link>
</li>
{/* List item */}
<li className="relative py-2">
<div className="flex items-center mb-1">
<div className="absolute left-0 h-full w-0.5 bg-slate-200 self-start ml-2.5 -translate-x-1/2 translate-y-3" aria-hidden="true"></div>
<div className="absolute left-0 rounded-full bg-[#ff0000] w-5 h-5" aria-hidden="true" />
<h3 className="text-lg font-bold text-slate-800 pl-9">
Second name Updated
</h3>
</div>
<div className="block text-slate-800 w-fit pl-9">
<div className="text-base font-semibold underline mb-[-10px]">{`0x${transId}`}</div>
<span className="font-normal text-[10px]">Transactions ID</span>
</div>
<div className="mb-3.5 block text-slate-800 w-fit pl-9">
<div className="text-base font-semibold underline mb-[-10px]">{transId}</div>
<span className="font-normal text-[10px]">Validated data</span>
</div>
<Link className="pl-9 font-normal text-sm text-indigo-500 hover:text-indigo-600" to="/digitalId/validation-log">Explore -&gt;</Link>
</li>
{/* List item */}
<li className="relative py-2">
<div className="flex items-center mb-1">
<div className="absolute left-0 rounded-full bg-indigo-500" aria-hidden="true">
<svg className="w-5 h-5 fill-current text-white" viewBox="0 0 20 20">
<path d="M14.4 8.4L13 7l-4 4-2-2-1.4 1.4L9 13.8z" />
</svg>
</div>
<h3 className="text-lg font-bold text-slate-800 pl-9">
Gender name by <Link className="font-bold text-indigo-500 hover:text-indigo-600 underline hover:no-underline" to="/digitalId/validation-log">{`0x${transId}`}</Link>
</h3>
</div>
<div className="block text-slate-800 w-fit pl-9">
<div className="text-base font-semibold underline mb-[-10px]">{`0x${transId}`}</div>
<span className="font-normal text-[10px]">Transactions ID</span>
</div>
<div className="mb-3.5 block text-slate-800 w-fit pl-9">
<div className="text-base font-semibold underline mb-[-10px]">{transId}</div>
<span className="font-normal text-[10px]">Validated data</span>
</div>
<Link className="pl-9 font-normal text-sm text-indigo-500 hover:text-indigo-600" to="/digitalId/validation-log">Explore -&gt;</Link>
</li>
</ul>
</div>
</div>
</article>
{/* PostsID */}
{logItems.map(item => {
return <ValidateRoadMap trunsSeason={item} key={item.id} />
})}
{/* Post */}
<article className="pt-6">
<div className="xl:flex">