From 99d235f5e7aa29e5b5d91af1162454a007f5d036 Mon Sep 17 00:00:00 2001 From: Daria Golova Date: Thu, 26 May 2022 18:05:07 +0300 Subject: [PATCH] create add field form --- src/pages/digitalId/ProfileId.jsx | 80 ++++++++++++++++++------- src/partials/digitalId/ProfileTable.jsx | 2 +- 2 files changed, 58 insertions(+), 24 deletions(-) diff --git a/src/pages/digitalId/ProfileId.jsx b/src/pages/digitalId/ProfileId.jsx index d74c2a7..731792e 100644 --- a/src/pages/digitalId/ProfileId.jsx +++ b/src/pages/digitalId/ProfileId.jsx @@ -6,6 +6,7 @@ import ProfileTable from '../../partials/digitalId/ProfileTable'; function Profile () { const [sidebarOpen, setSidebarOpen] = useState(false); + const [toggle, setToggle] = useState(true); return (
@@ -17,32 +18,65 @@ function Profile () {
- {/* Page header */} -
- {/* Title */} +
+ {/* Page header */}
-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
+ {/* Title */} +
+
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+
+ {/* Table */} + +
+ {/* Sidebar */} +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ Store data on blockchain + {/* Start */} +
+
+ setToggle(!toggle)} /> + +
+
+
+ {/* End */} +
- {/* Page content */} - {/* Table */} -
diff --git a/src/partials/digitalId/ProfileTable.jsx b/src/partials/digitalId/ProfileTable.jsx index f0f6b5f..095d624 100644 --- a/src/partials/digitalId/ProfileTable.jsx +++ b/src/partials/digitalId/ProfileTable.jsx @@ -147,7 +147,7 @@ function ProfileTable() {

General 🖋️

- + {userData.filter(data => data.category === 'General') .map(data => { return (