From c44516a2f79e117934037526d1deb9548aaf82ad Mon Sep 17 00:00:00 2001 From: Daria Golova Date: Wed, 25 May 2022 15:09:00 +0300 Subject: [PATCH] done validation bar --- src/css/tailwind.config.js | 1 + src/pages/digitalId/ProfileId.jsx | 2 +- src/partials/digitalId/ProfileTableItem.jsx | 89 ++++++++++++++++++--- 3 files changed, 80 insertions(+), 12 deletions(-) diff --git a/src/css/tailwind.config.js b/src/css/tailwind.config.js index 5f9a059..4d79d5f 100644 --- a/src/css/tailwind.config.js +++ b/src/css/tailwind.config.js @@ -25,6 +25,7 @@ module.exports = { sm: ['0.875rem', { lineHeight: '1.5715' }], base: ['1rem', { lineHeight: '1.5', letterSpacing: '-0.01em' }], lg: ['1.125rem', { lineHeight: '1.5', letterSpacing: '-0.01em' }], + validateLg: ['1.125rem', { lineHeight: '1.875', letterSpacing: '-0.014em' }], xl: ['1.25rem', { lineHeight: '1.5', letterSpacing: '-0.01em' }], '2xl': ['1.5rem', { lineHeight: '1.33', letterSpacing: '-0.01em' }], '3xl': ['1.88rem', { lineHeight: '1.33', letterSpacing: '-0.01em' }], diff --git a/src/pages/digitalId/ProfileId.jsx b/src/pages/digitalId/ProfileId.jsx index 4100a3f..1703232 100644 --- a/src/pages/digitalId/ProfileId.jsx +++ b/src/pages/digitalId/ProfileId.jsx @@ -13,7 +13,7 @@ function Profile () { image: ProfileIcon, value: 'Passport', property: 'Document type', - status: 'Stored' + status: 'Progress' }; return ( diff --git a/src/partials/digitalId/ProfileTableItem.jsx b/src/partials/digitalId/ProfileTableItem.jsx index 3f1ecb0..3ab2af0 100644 --- a/src/partials/digitalId/ProfileTableItem.jsx +++ b/src/partials/digitalId/ProfileTableItem.jsx @@ -8,8 +8,8 @@ function ProfileTableItem(props) { return ( <> - - + +
- +
{props.property}
-
+
{props.value}
{props.property}
- + {(props.status === 'Progress') ? (
{props.status}
@@ -61,7 +61,7 @@ function ProfileTableItem(props) {
- + {/* Menu button */}
- +
-
+
- +
Transaction - 0x12831823791203192418234841238468 + 0x12831823791203192418234841238468 +
+
+ {/* Progress validation bar */} +
+
+
+

Today

+
+
+ +