diff --git a/src/pages/digitalId/ProfileId.jsx b/src/pages/digitalId/ProfileId.jsx
index 4d85496..d74c2a7 100644
--- a/src/pages/digitalId/ProfileId.jsx
+++ b/src/pages/digitalId/ProfileId.jsx
@@ -2,25 +2,11 @@ import React, { useState } from 'react';
import Sidebar from '../../partials/Sidebar';
import Header from '../../partials/Header';
-import ProfileTableItem from '../../partials/digitalId/ProfileTableItem';
-import ProfileIcon from '../../images/profile-icon.svg';
-import Avatar01 from '../../images/avatar-01.jpg';
-import Avatar02 from '../../images/avatar-02.jpg';
-import Avatar03 from '../../images/avatar-03.jpg';
+import ProfileTable from '../../partials/digitalId/ProfileTable';
function Profile () {
const [sidebarOpen, setSidebarOpen] = useState(false);
- const data = {
- id: '0',
- image: ProfileIcon,
- value: 'Passport',
- property: 'Document type',
- status: 'Progress',
- transactions: ['0x7234ABC342342352345', '0x5745DEF342342352345'],
- avatars: [Avatar01, Avatar02, Avatar03]
- };
-
return (
{/* Sidebar */}
@@ -32,25 +18,31 @@ function Profile () {
{/* Page header */}
-
+
{/* Title */}
-
Profile ✨
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ {/* Page content */}
{/* Table */}
-
+
diff --git a/src/partials/digitalId/ProfileTable.jsx b/src/partials/digitalId/ProfileTable.jsx
new file mode 100644
index 0000000..f0f6b5f
--- /dev/null
+++ b/src/partials/digitalId/ProfileTable.jsx
@@ -0,0 +1,222 @@
+import React from 'react';
+import ProfileTableItem from './ProfileTableItem';
+import ProfileIcon from '../../images/profile-icon.svg';
+import Avatar01 from '../../images/avatar-01.jpg';
+import Avatar02 from '../../images/avatar-02.jpg';
+import Avatar03 from '../../images/avatar-03.jpg';
+
+function ProfileTable() {
+
+ const userData = [
+ {
+ id: '0',
+ category: 'General',
+ validated: true,
+ blockchained: true,
+ image: ProfileIcon,
+ value: 'Dominik',
+ property: 'First name',
+ status: 'Completed',
+ transactions: ['0x7234ABC342342352345', '0x5745DEF342342352345'],
+ avatars: [Avatar01, Avatar02, Avatar03]
+ },
+ {
+ id: '1',
+ category: 'General',
+ validated: true,
+ blockchained: true,
+ image: ProfileIcon,
+ value: 'Lamakani',
+ property: 'Second name',
+ status: 'Progress',
+ transactions: ['0x7234ABC342342352345', '0x5745DEF342342352345'],
+ avatars: null
+ },
+ {
+ id: '2',
+ category: 'General',
+ validated: true,
+ blockchained: true,
+ image: ProfileIcon,
+ value: '05.10.1983',
+ property: 'Birthdate',
+ status: 'Incorrect',
+ transactions: ['0x7234ABC342342352345', '0x5745DEF342342352345'],
+ avatars: null
+ },
+ {
+ id: '3',
+ category: 'General',
+ validated: true,
+ blockchained: true,
+ image: ProfileIcon,
+ value: 'Male',
+ property: 'Gender',
+ status: 'Stored',
+ transactions: ['0x7234ABC342342352345', '0x5745DEF342342352345'],
+ avatars: null
+ },
+ {
+ id: '4',
+ category: 'Nationality',
+ validated: true,
+ blockchained: true,
+ image: ProfileIcon,
+ value: 'United Kindom',
+ property: 'Residence',
+ status: 'Completed',
+ transactions: ['0x7234ABC342342352345', '0x5745DEF342342352345'],
+ avatars: [Avatar01, Avatar02, Avatar03]
+ },
+ {
+ id: '5',
+ category: 'Nationality',
+ validated: true,
+ blockchained: true,
+ image: ProfileIcon,
+ value: 'Passport',
+ property: 'Document type',
+ status: 'Progress',
+ transactions: ['0x7234ABC342342352345', '0x5745DEF342342352345'],
+ avatars: [Avatar01, Avatar02, Avatar03]
+ },
+ {
+ id: '6',
+ category: 'Nationality',
+ validated: true,
+ blockchained: true,
+ image: ProfileIcon,
+ value: 'A123B3143',
+ property: 'Document ID',
+ status: 'Incorrect',
+ transactions: ['0x7234ABC342342352345', '0x5745DEF342342352345'],
+ avatars: null
+ },
+ {
+ id: '7',
+ category: 'Nationality',
+ validated: true,
+ blockchained: true,
+ image: ProfileIcon,
+ value: '05.10.2012',
+ property: 'Issue date',
+ status: 'Stored',
+ transactions: ['0x7234ABC342342352345', '0x5745DEF342342352345'],
+ avatars: null
+ },
+ {
+ id: '8',
+ category: 'Nationality',
+ validated: true,
+ blockchained: true,
+ image: ProfileIcon,
+ value: '05.10.2032',
+ property: 'Expiry date',
+ status: 'Stored',
+ transactions: ['0x7234ABC342342352345', '0x5745DEF342342352345'],
+ avatars: null
+ },
+ {
+ id: '9',
+ category: 'Social',
+ validated: true,
+ blockchained: true,
+ image: ProfileIcon,
+ value: '@lamakani',
+ property: 'Telegram',
+ status: 'Completed',
+ transactions: ['0x7234ABC342342352345', '0x5745DEF342342352345'],
+ avatars: null
+ },
+ {
+ id: '10',
+ category: 'Social',
+ validated: true,
+ blockchained: true,
+ image: ProfileIcon,
+ value: '@lamakani',
+ property: 'Telegram',
+ status: 'Progress',
+ transactions: ['0x7234ABC342342352345', '0x5745DEF342342352345'],
+ avatars: [Avatar01, Avatar02, Avatar03]
+ },
+ ]
+
+ return (
+ <>
+ General 🖋️
+
+
+
+ {userData.filter(data => data.category === 'General')
+ .map(data => {
+ return (
+
+ )
+ })
+ }
+
+
+
+
+ Nationality 🖋️
+
+
+
+ {userData.filter(data => data.category === 'Nationality')
+ .map(data => {
+ return (
+
+ )
+ })
+ }
+
+
+
+
+ Social 🖋️
+
+
+
+ {userData.filter(data => data.category === 'Social')
+ .map(data => {
+ return (
+
+ )
+ })
+ }
+
+
+
+ >
+ )
+}
+
+export default ProfileTable;
diff --git a/src/partials/digitalId/ProfileTableItem.jsx b/src/partials/digitalId/ProfileTableItem.jsx
index 5a17432..ccc8faa 100644
--- a/src/partials/digitalId/ProfileTableItem.jsx
+++ b/src/partials/digitalId/ProfileTableItem.jsx
@@ -5,7 +5,7 @@ function ProfileTableItem(props) {
return (
<>
-
+
|
|
-
+
|
|