add props

This commit is contained in:
Daria Golova
2022-05-25 15:40:45 +03:00
parent c44516a2f7
commit 6580c211ff
2 changed files with 11 additions and 7 deletions

View File

@@ -13,7 +13,9 @@ function Profile () {
image: ProfileIcon,
value: 'Passport',
property: 'Document type',
status: 'Progress'
status: 'Progress',
transactions: '0x7234ABC342342352345',
validatedData: '7234ABC342342352345'
};
return (
@@ -44,6 +46,8 @@ function Profile () {
value={data.value}
property={data.property}
status={data.status}
transactions={data.transactions}
validatedData={data.validatedData}
/>
</tbody>
</table>

View File

@@ -119,15 +119,15 @@ function ProfileTableItem(props) {
</div>
<h3 className="pl-9 whitespace-nowrap">
<span className="text-validateLg font-bold text-slate-800">Validate by </span>
<span className="font-bold text-validateLg underline text-indigo-500">0x7324ABC342342352345</span>
<a href="" className="font-bold text-validateLg underline text-indigo-500">{props.transactions}</a>
</h3>
</div>
<div className="pl-9">
<a href="" className="w-[396px] text-slate-800 font-semibold text-base underline">0x7324ABC342342352345</a>
<a href="" className="w-[396px] text-slate-800 font-semibold text-base underline">{props.transactions}</a>
<span className="block text-xxs font-normal mb-1">Transactions ID</span>
</div>
<div className="pl-9">
<a href="" className="w-[396px] text-slate-800 font-semibold text-base underline">7324ABC342342352345</a>
<a href="" className="w-[396px] text-slate-800 font-semibold text-base underline">{props.validatedData}</a>
<span className="block text-xxs font-normal mb-1">Validated data</span>
</div>
<div className="pl-9 pt-[14px]">
@@ -146,15 +146,15 @@ function ProfileTableItem(props) {
</div>
<h3 className="pl-9 whitespace-nowrap">
<span className="text-validateLg font-bold text-slate-800">Validate by </span>
<span className="font-bold text-validateLg underline text-indigo-500">0x7324ABC342342352345</span>
<a href="" className="font-bold text-validateLg underline text-indigo-500">{props.transactions}</a>
</h3>
</div>
<div className="pl-9">
<a href="" className="w-[396px] text-slate-800 font-semibold text-base underline">0x7324ABC342342352345</a>
<a href="" className="w-[396px] text-slate-800 font-semibold text-base underline">{props.transactions}</a>
<span className="block text-xxs font-normal mb-1">Transactions ID</span>
</div>
<div className="pl-9">
<a href="" className="w-[396px] text-slate-800 font-semibold text-base underline">7324ABC342342352345</a>
<a href="" className="w-[396px] text-slate-800 font-semibold text-base underline">{props.validatedData}</a>
<span className="block text-xxs font-normal mb-1">Validated data</span>
</div>
<div className="pl-9 pt-[14px]">