From adcf04c1e3110c283ec9b0204620f2543f4844e6 Mon Sep 17 00:00:00 2001 From: Benoit Devos Date: Thu, 16 May 2024 16:15:02 +0200 Subject: [PATCH] feat: improve secrets management styling. logion-network/logion-internal#1253 logion-network/logion-internal#1254 --- public/assets/key.svg | 4 ++++ src/components/toggle/Eye.css | 2 +- src/img/eye-closed.svg | 3 --- src/img/eye-slash.svg | 5 +++++ src/img/eye.svg | 6 +++--- src/loc/secrets/SecretsButton.css | 3 +++ src/loc/secrets/SecretsButton.tsx | 6 +++++- src/loc/secrets/SecretsPane.tsx | 3 ++- src/loc/secrets/ViewableSecret.tsx | 2 +- 9 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 public/assets/key.svg delete mode 100644 src/img/eye-closed.svg create mode 100644 src/img/eye-slash.svg create mode 100644 src/loc/secrets/SecretsButton.css diff --git a/public/assets/key.svg b/public/assets/key.svg new file mode 100644 index 00000000..b4aef876 --- /dev/null +++ b/public/assets/key.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/components/toggle/Eye.css b/src/components/toggle/Eye.css index ba05d608..7baad067 100644 --- a/src/components/toggle/Eye.css +++ b/src/components/toggle/Eye.css @@ -13,7 +13,7 @@ background-image: url("../../img/eye.svg"); } .Eye:not(.checked):after { - background-image: url("../../img/eye-closed.svg"); + background-image: url("../../img/eye-slash.svg"); } .Eye:after { diff --git a/src/img/eye-closed.svg b/src/img/eye-closed.svg deleted file mode 100644 index 2c826d1e..00000000 --- a/src/img/eye-closed.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/img/eye-slash.svg b/src/img/eye-slash.svg new file mode 100644 index 00000000..2d3ea73c --- /dev/null +++ b/src/img/eye-slash.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/img/eye.svg b/src/img/eye.svg index d7de87cc..6dba537c 100644 --- a/src/img/eye.svg +++ b/src/img/eye.svg @@ -1,4 +1,4 @@ - - - + + + diff --git a/src/loc/secrets/SecretsButton.css b/src/loc/secrets/SecretsButton.css new file mode 100644 index 00000000..7ce12cdd --- /dev/null +++ b/src/loc/secrets/SecretsButton.css @@ -0,0 +1,3 @@ +.SecretsButton img { + margin-right: 10px; +} diff --git a/src/loc/secrets/SecretsButton.tsx b/src/loc/secrets/SecretsButton.tsx index 019235d2..2eb6a2da 100644 --- a/src/loc/secrets/SecretsButton.tsx +++ b/src/loc/secrets/SecretsButton.tsx @@ -2,6 +2,8 @@ import Button from "../../common/Button"; import { useNavigate } from "react-router-dom"; import { secretsPath } from "../../wallet-user/UserPaths"; import { useLocContext } from "../LocContext"; +import Icon from "../../common/Icon"; +import "./SecretsButton.css"; export default function SecretsButton() { const { loc } = useLocContext(); @@ -11,7 +13,9 @@ export default function SecretsButton() { } return ( - { props.value } } - { hidden && ****** } + { hidden && •••••• }