From 73c4bf34d6f0e14919e14f9c91e0ced6e05af7ff Mon Sep 17 00:00:00 2001 From: nizune <9-nizune@users.noreply.gitlab.insrt.uk> Date: Wed, 4 Aug 2021 12:21:29 +0200 Subject: [PATCH] Changed design of account settings --- src/pages/settings/panes/Account.tsx | 12 +++++----- src/pages/settings/panes/Panes.module.scss | 28 ++++++++++++---------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/src/pages/settings/panes/Account.tsx b/src/pages/settings/panes/Account.tsx index 4f3f2b5a..acf72202 100644 --- a/src/pages/settings/panes/Account.tsx +++ b/src/pages/settings/panes/Account.tsx @@ -1,5 +1,5 @@ -import { At } from "@styled-icons/boxicons-regular"; -import { Envelope, Key, HelpCircle } from "@styled-icons/boxicons-solid"; +import { At, Key } from "@styled-icons/boxicons-regular"; +import { Envelope, HelpCircle } from "@styled-icons/boxicons-solid"; import { observer } from "mobx-react-lite"; import { Link, useHistory } from "react-router-dom"; import { Profile } from "revolt-api/types/Users"; @@ -77,7 +77,7 @@ export const Account = observer(() => { [ ["username", client.user!.username, ], ["email", email, ], - ["password", "*********", ], + ["password", "•••••••••", ], ] as const ).map(([field, value, icon]) => (
@@ -86,13 +86,13 @@ export const Account = observer(() => {
-

+

{field === "email" ? ( revealEmail ? ( value ) : ( <> - ***********@{value.split("@").pop()}{" "} + •••••••••••@{value.split("@").pop()}{" "} setRevealEmail(true) @@ -104,7 +104,7 @@ export const Account = observer(() => { ) : ( value )} -

+