From 822a630a9dfd3966fcf16135b3835a7f1feb659f Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Wed, 17 Nov 2021 18:32:05 +0000 Subject: [PATCH] Clean up userdropdown a bit --- .../dashboard/users/UserIntegrationsPage.tsx | 5 ++-- .../layout/header/UserProfileDropdown.tsx | 23 ++++++++++++++++--- client/src/components/util/Icon.tsx | 6 ++++- 3 files changed, 28 insertions(+), 6 deletions(-) diff --git a/client/src/app/pages/dashboard/users/UserIntegrationsPage.tsx b/client/src/app/pages/dashboard/users/UserIntegrationsPage.tsx index 876f8531a..526da873f 100644 --- a/client/src/app/pages/dashboard/users/UserIntegrationsPage.tsx +++ b/client/src/app/pages/dashboard/users/UserIntegrationsPage.tsx @@ -625,9 +625,10 @@ function ServicesPage({ reqUser }: { reqUser: PublicUserDocument }) { This is for Configuring Integrations! +
- Some services have had their names truncated to their first three characters for - privacy reasons. + Note: Some services have had their names truncated to their first three + characters for privacy reasons. diff --git a/client/src/components/layout/header/UserProfileDropdown.tsx b/client/src/components/layout/header/UserProfileDropdown.tsx index 3a4acb65b..7612eeb90 100644 --- a/client/src/components/layout/header/UserProfileDropdown.tsx +++ b/client/src/components/layout/header/UserProfileDropdown.tsx @@ -1,5 +1,6 @@ import Divider from "components/util/Divider"; import DropdownToggleOverride from "components/util/DropdownToggleOverride"; +import Icon from "components/util/Icon"; import { UserContext } from "context/UserContext"; import React, { useContext } from "react"; import { Button } from "react-bootstrap"; @@ -50,7 +51,7 @@ export function UserProfileDropdown({ user }: { user: PublicUserDocument }) { >
- +
My Profile
@@ -64,12 +65,28 @@ export function UserProfileDropdown({ user }: { user: PublicUserDocument }) { >
- +
My Settings
- Manage your profile, service integrations, and more! + Manage your profile picture, status, and more! +
+
+
+ + +
+
+ +
+
+
My Account
+
+ Manage your API Keys and integrations with other services.
diff --git a/client/src/components/util/Icon.tsx b/client/src/components/util/Icon.tsx index 6371646fd..04e2a0cdb 100644 --- a/client/src/components/util/Icon.tsx +++ b/client/src/components/util/Icon.tsx @@ -5,16 +5,20 @@ export default function Icon({ noPad, brand, onClick, + colour, }: { type: string; noPad?: boolean; brand?: boolean; onClick?: () => void; + colour?: "info" | "primary" | "danger" | "warning"; }) { return ( ); }